#jquery #.before() #method to add a new element before the selected element or move the element to another location .before() .before() can add a new element before the selected element or move an element in another place. grammar .before( content [, content ] ) for example $( 'h1' ).before( 'Hello' ); adds a p element with Hello as its content before the h1 element. $( 'h1.a' ).before( $( 'p.b'..