insertafter div based on jquery code example Example: jquery insert after $( "<p>Test</p>" ).insertAfter( ".inner" );