before() in jQuery
This method will insert contents specified in the parameter, before each element in the set of matched elements.
If there are more than one target element, cloned copies of the inserted element will be created for each target except for the last one.
- content - HTML string, DOM element, text node, array of elements and text nodes, or jQuery object which is to be inserted before each element in the set of matched elements.
- index - Index position of the element in the set.
- currentElement - old HTML value of the element.