I have a dropdown which displays colours for clothing garments. When a colour is selected I would like it so that a div changes to show the image applicable to that colour.
I need it so that a different div is changed on each selection, so for example if the first selection is selected then a div called div_img1 is shown, if the second is selected then a div called div_img2 is shown. I would also need to hide the toggled divs as well.
The selections in the menu won't always have an image to change to so this needs to be beared in my mind too.
And finally, the options in the select dropdown already have a value which will be the same as the colour to select, but the divs that change need to have the same name, such as div_img1, div_img2, etc.