Is it possible to insert an img after a div with jquery? If so how to control its position?
Please try your answer here: http://jsfiddle.net/cPtU9/2/
HTML:
<div id="grey"></div>
CSS:
#grey {
position: absolute;
top: 50px; left: 50px;
width:200px; height: 200px;
background-color: #eee;
}
JQuery:
$('#grey').after("<img src='http://www.w3.org/html/logo/downloads/HTML5_Badge_128.png' />");