jQuery add image inside of div tag
Solution 1:
Have you tried the following:
$('#theDiv').prepend('<img id="theImg" src="theImg.png" />')
Solution 2:
my 2 cents:
$('#theDiv').prepend($('<img>',{id:'theImg',src:'theImg.png'}))
Have you tried the following:
$('#theDiv').prepend('<img id="theImg" src="theImg.png" />')
my 2 cents:
$('#theDiv').prepend($('<img>',{id:'theImg',src:'theImg.png'}))