jQuery insertAfter vs. .after vs. .appendTo vs. .append
jQuery insertAfter vs. .after vs. .appendTo vs. .append
by ian_smithz
HTML
<div class="4">div4</div>
<thing class="4">thing4</thing>
JavaScript
// Insert content, specified by the parameter, to the end of each element in the set of matched elements.
$('div.4').prepend('thing.4');