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