I have an image
`<img src="../images/Editing-Edit-icon.png" data-toggle="modal" data-target=".editButton" id="deleteBtn"/>`
and a button
`<button onclick="loadImage()">`
I am trying to load img inside a div on button click, like the follows:
function loadImage(){
cell1.innerHTML = document.getElementById("deleteBtn").value;
}
But it is not working. How can I do that?