set src property javascript in image to a http get request code example
Example: how to edit image tags in javascript
<a href='#' onclick='edit()'><img src="../template/edit.png" id="edit-save"/></a>
<a href='#' onclick='edit()'><img src="../template/edit.png" id="edit-save"/></a>