HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
jQuery Traversing Methods : Return all <p> elements that do not have the class name "intro"
The not() method returns elements that do not match a certain criteria.
This method lets you specify a criteria. Elements that do not match the criteria are returned from the selection, and those that match will be removed.
This method is often used to remove one or more elements from a group of selected elements.
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. Tip: To specify multiple criteria, use comma. |
function(index) | Optional. Specifies a function to run for each element in a group. If it returns true, the element is removed. Otherwise, the element is kept.
|