how to append a child before an element code example Example: javascript add element above $( "<p>Test</p>" ).insertBefore( ".inner" );