jQuery not() Method
jQuery not() Method
The not() method is used to return elements that do not match certain criteria. We can specify the criteria. Those elements are returned for selection which do not match the criteria and those that match the criteria will be removed. It is the opposite of the filter() method.
Syntax:-
Its syntax is:- $(selector).not(criteria, function(index))
Further Explanation:-
Parameter | Description |
---|---|
criteria | Optional. Specifies a selector expression, a jQuery object, or one or more elements to be removed from a group of selected elements. |
function(index) | Optional. Specifies a function to run for each element in a group.
|