jquery add something before code example Example: append before jquery $( "h2" ).insertBefore( $( ".container" ) );