Dom attribute with image path 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>