jQuery “prev() Method ” is used to get previous elements of the selected element.
Syntax : jQuery prev() method
$(selector).prev(filter);
filter : It is optional, A selector expression used to match the elements against.
$(selector).prev(filter);
filter : It is optional, A selector expression used to match the elements against.