jquery insertbefore insertafter code example Example: insertbefore jquery $( "<p>Test</p>" ).insertBefore( ".inner" );