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


;

< ;/div>

:parent


looking for The node must exist as a parent element node$("div:parent")##

linken love beijing

jack love shanghai

;

##

   php.cn    

内容过滤选择器

i love beijing
jack love shanghai

Continuing Learning
||
php.cn

内容过滤选择器

i love beijing
jack love shanghai

submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!