How can i change the src of an image through select-option? The img-src is a php variable and once something is selected I wanted it to change a select-option from another div
The dropdown
<select>
<option value="<?php echo $aColorName; ?>">Color Name</option>
<option value="<?php echo $anotherColorName; ?>">Color Name</option>
</select>
<img src="<?php echo $colorUrl.$aColorName ?>" />
I wanted the image source to update each time a new color is selected from the options