jquery add div before another div code example Example: add div after div jquery $( "<p>Test</p>" ).insertAfter( $( ".container" ) );