I have this image element with an id. I am trying to store it as a variable so that I can use it. I have my code but when I run it, instead of a display image, it shows me [object Object]. Please, how do I store images in a variable and gain access to it?
html:
<img width="100" height="100" id="image"/>
Javascript:
function myTest(){
var image = $("#image").attr("src", "data:image/jpeg;base64,");
}