jQuery add image inside of div tag

Have you tried the following:

$('#theDiv').prepend('<img id="theImg" src="https://stackoverflow.com/questions/941206/theImg.png" />')

Leave a Comment