开发者

jQuery: "Doesn't have" selector?

I see this has selector, where's the hasnt selector? I want to开发者_如何学Go find tables that don't contain images.


Something like $("table:not(:has(img))")?


Take a look at not(). Then you can say:

$('selection').not('something-you-don\'t-want')


Try the .not() method or the :not() selector.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜