assing new src jsvascript 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>