jQuery prevAll() Method
jQuery prevAll() Method
The prevAll() method is used to return all previous sibling elements of the selected element. Sibling elements are those elements that have the same parent. It traverses backward along with siblings of DOM elements. Its related methods are prev() and prevUntil().
Syntax:-
Its syntax is:- $(selector).prevAll(filter)
Further Explanation:-
Parameter | Description |
---|---|
filter | Optional. Specifies a selector expression to narrow down the search for previous siblings |