InsertBefore
methodsInserts a node before another node. This method may also be used to reorder nodes.
Parameters:nodeDataObject
referenceNodejQuery
Returns:jQuery
A JSON-formatted string or selector that specifies the node to be inserted.
The node that follows the inserted node.
The inserted <li> element, wrapped in a jQuery object.