I have a JavaScript Image object that I load dynamically with jQuery.
What I want to do is change a <img /> image with one stored on my Image object. How should I do this?
Note: I want to avoid changing the source of my <img /> tag as it downloads it again from the server, and I already have the image stored in my image object
$(image)? Images are usually cached, so loading the same image twice won't download it twice.$(image)does, but I have the image stored in a JavaScriptImageobject, and I want to avoid changing the src as I don't want to download the image every time I change it