1var newDiv = $('<div>My new div</div>'); //create Div Element w/ jquery
2$( "#someOtherElement" ).append(newDiv); //append new div somewhere
1<div class="container">
2 <h2>Greetings</h2>
3 <div class="inner">Hello</div>
4 <div class="inner">Goodbye</div>
5</div>
6<script>$( "<p>Test</p>" ).insertAfter( ".inner" );</script>