Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery append img to div

function image() {
    var img = document.createElement("IMG");
    img.src = "/images/img1.gif";
    $('#image').html(img); 
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #append #img #div
ADD COMMENT
Topic
Name
4+7 =