The example in this article describes the usage of the not() method in jQuery. Share it with everyone for your reference. The specific analysis is as follows:
This method removes elements that match the specified expression.
Grammar structure 1:
Parameter list:
Example code:
The above code can return the number of li elements in the jquery object after deleting the li with the class name js.
Grammar structure 2:
Parameter list:
Example code:
The above code can return the number of li elements in the jquery object after deleting the li with the id value of js.
Grammar structure three:
Parameter list:
实例代码:
希望本文所述对大家的jQuery程序设计有所帮助。