jquery accomplishes node lookups through selectors:
1. Basic selector:
① Universal/All selectors: $ ("*")//use * to indicate.
②: Tag Selector: $ ("tag name (DIV)")//Use tag name to locate
③:id selector: $ ("#id")
④: Class selector: $ (". Class")
⑤: Group Selector (SET): $ ("TABLE,TD")//all table and TD are selected
⑥: Combo Selector (intersection): $ ("p.c1")//tag p and his class attribute is C1.
2. Hierarchy selector:
①: Descendant selector (space): $ ("div span")//all span tags under div (descendants ... Descendants) are selected.
$ ("div *")//div all tags
②: Descendant selector: $ ("Div>span")//tag span for Div tag's son (only for descendants, not after grandchildren)
$ ("div>") all descendants of the//div tag can be selected
3. Brother Selector:
①:$ ("div+")//Next brother (select only the next sibling tag of the DIV tag)
$ ("Div+div")//Select div tag next brother tag for Div.
②:$ ("div~") all brother tags after//div tag
$ ("div~p")//div tag after all brother tags are selected for p.
JQuery Lookup Node (selector)