change image src on change image js code example
Example: javascript change image src
//change image src
document.getElementById('myImageID').src="images/my_other_image.png";
//change image src
document.getElementById('myImageID').src="images/my_other_image.png";