how to change the img src based on the attribute code example
Example 1: set img src using javascript
document.getElementById("imageid").src="../template/save.png";
Example 2: change img src css
// You cannot do it with CSS alone
// You can with JS
element.style.src = "someImage.jpg";
// Or with jQuery
$('some-element').attr('src', 'someImage.jpg');