jQuery prevUntil() Method
jQuery prevUntil() Method
The prevUntil() method is used to return all previous sibling elements between the selector and stop. 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 prevAll().
Syntax:-
Its syntax is:- $(selector).prevUntil(stop,filter)
Further Explanation:-
Parameter | Description |
---|---|
stop | Optional. A selector expression, element, or jQuery object indicating where to stop the search for previous matching siblings elements |
filter | Optional. Specifies a selector expression to narrow down the search for sibling elements between the selector and stop |