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