jQuery Methods: before()
before() method is used to add content before each element in the set of matched elements. The content is passed as an argument to
before(). Content can be a string literal of some HTML text or it could be a jQuery selector:
$( "h2" ). If the
content argument is a jQuery selector, then the selector will actually move the selected element from its current location, to before the jQuery object that this method is called on (the selected content is NOT cloned).