JavaScript Alterar imagem SRC
//change image src
document.getElementById('myImageID').src="images/my_other_image.png";
Grepper
//change image src
document.getElementById('myImageID').src="images/my_other_image.png";
if (img.getAttribute('src') === 'on.png')
var youtubeimgsrc = document.getElementById("youtubeimg").src;
<a href='#' onclick='edit()'><img src="../template/edit.png" id="edit-save"/></a>