jQuery content filter selector
Content filter selector
:contains(content)
Contains content selector, the inside of the obtained node must contain the specified content through the tag
$("div:contains(beijing)")
linken love beijing
jack love shanghai
:empty
Get the empty element (no element/text (empty) inside) node object
$("div:empty")
linken love beijing
jack love shanghai
< ;div>
:has(selector)
The selector that contains the specified element inside$(“div:has(#apple)”)hello
;