I have an img tag and a select box
You can set onchange event to the select.
onchange
select
Google Yandex Mail
Javascript:
function setImage(select){ var image = document.getElementsByName("image-swap")[0]; image.src = select.options[select.selectedIndex].value; }
Example there