I understand JQuery in the basic sense but am definitely new to it, and suspect this is very easy.
I\'ve got my image src and id in a JSON response (converted to an
In jQuery, a new element can be created by passing a HTML string to the constructor, as shown below:
var img = $(''); //Equivalent: $(document.createElement('img')) img.attr('src', responseObject.imgurl); img.appendTo('#imagediv');