N")"; 3. Sibling selector, syntax "$("M~N")"; 4. Adjacent selector, syntax "$("M+N")"."> What hierarchical selectors are there in jquery?-Front-end Q&A-php.cn

What hierarchical selectors are there in jquery?

青灯夜游
Release: 2022-03-16 13:15:55
Original
3904 people have browsed it

the hierarchical selectors in jquery are: 1. descendant selector, syntax "$("m n")"; 2. "$("m>n")"; 3 , sibling selectors, the is "$("m~n")"; 4. adjacent n")". < p>< blockquote>

What hierarchical selectors are there in jquery?< p>

the operating environment of this tutorial: windows7 system, jquery1.10.2 version, dell g3 computer. selector a basic that selects elements through relationship between elements. hierarchical are also very important actual development. common relationships include: father and son, descendants, brothers, neighbors.

in jquery, there 4 types as shown table below.
jquery selector< caption>
selector< th> description< tr>
m n< td> m>n< the first-level elements)< m~n< >sibling all sibling after element< >adjacent adjacent (next) to (m tbody> table> addition, we need pay attention following points: