html img src js code example
Example 1: how to change image source using javascript
document.getElementById("myImg").src = "hackanm.gif";
Example 2: how to edit image tags in javascript
<a href='#' onclick='edit()'><img src="../template/edit.png" id="edit-save"/></a>