我基本上理解JQuery,但我对它绝对是新手,我怀疑这很容易.
I've got my image src and id in a JSON response (converted to an object), and therefore the correct values in responseObject.imgurl and responseObject.imgid, and now I'd like to create an image with it and append it to a div (lets call it <div id="imagediv">
. I'm a bit stuck on dynamically building the <img src="dynamic" id="dynamic">
- most of the examples I've seen involve replacing the src on an existing image, but I don't have an existing image.