I have a div tag
Where is the image?
I would like to add an image tag inside of the div
End re
In addition to Manjeet Kumar's post (he didn't have the declaration)
var image = document.createElement("IMG"); image.alt = "Alt information for image"; image.setAttribute('class', 'photo'); image.src="/images/abc.jpg"; $(#TheDiv).html(image);