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