Tutorialsplane

jQuery prevAll Method


jQuery “prevAll() Method ” is used to get all previous elements of the selected element.

Syntax : jQuery prevAll() method

$(selector).prevAll(filter);

filter : It is optional, A selector expression used to match the elements against.

jQuery prevAll Method demo Example

jQuery prevAll() Method – Example 1


Try it »

jQuery prevAll Method demo Example

jQuery prevAll() Method – Example 2


Try it »