jQuery basic filter selector
Filtering literally means filtering out things you don’t want. That is to say, what is left after filtering is what you need, so its use isjQuery selectoris to filter out the requiredDOMelements through specific filtering rules. The filtering rules ofjQuery selectorare the same as those inCSSThe pseudo-class selector syntax is the same. Selectors all begin with a colon (:). According to different filtering rules, we usually dividejQueryfilter selectors into:Basic filtering,Content filtering,Visibility filtering,Attribute filtering,Sub-element filtering,Form object attribute filter, etc. Today we will mainly discuss the "Basic Filter Selector" together.
Let’s follow the HTML andDOMtree diagram in the article "jQuery Selector - Hierarchical Selector" to learn today's basic filter selector.