01. The syntax for getting the first generation of child elements is the Parent>child selector
Example: Get the syntax for the span element of the first generation sub-element under all DIV elements is
$ ("Div>span")
02.id Selector #
03.class Selector.
04. The asterisk (*) selector, which gets all the elements of the page. "All"!!
05. If you want to select more than one specified element, you need to split it with ",".
$ ("Sele1,sele2,selen")
06.:first Picker Gets the first element
Example: Getting the first element in an LI tag
$ ("Li:fiirst")
The 07.:eq (index) selector, which gets the specified index element, which starts with the subscript 0.
$ ("Li:eq (3)"). CSS ("Background-color", "red")//change the background of the 4th Li element to red
08.:contains (String) selector, selecting all elements that contain string strings
09.:has (selector) selector with all elements of the specified element name in the selector
Example: Changing the background of the P tag under the LI tag
$ ("Li:has (P)"). CSS ("Background-color", "Blue");
jquery Learning Notes