如何根据下拉选择动态更新 img URL 的结尾部分?for example when blue is selected the filename before .jog would get filled in with the word blue. 它正在使用 css,我无法将任何 id 添加到:
<img src="www.mysite.com/blue.jpg">
<select>
<option>green</option>
<option>blue</option>
</select>