I have a select box and by selecting options from the select box I want to change image on my browser, but I don't want to write all the images on my code. If you don't understand the see below code-
<select>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
<ul>
<li id="myImg">
<img src="images/1.jpg">
</li>
</ul>
Above is my html but i don't know what would be it's java script. I just want whenever I select option from select box, the image should be changed and it's would be picked up from my local system and replace the old one. Is it possible? or I'm just asking a stupid question? Actually I want this in my project, please someone help. Thanks