i use insertAfter to insert a div tag in to an element.
HTML Code:
$("<div class='redBox'>Iron man</div>").insertAfter('#footer');
<div class='redBox'>Iron man</div> displayed in web browse. but when view source (ctr+u) not display