开发者

How to select all elements except the ones with a given class, using jQuery?

I want to select all elements in my page except th开发者_开发知识库ose with the class "searchBox".

How can I do that?

I want to disable text selection on all elements except input elements


$('* :not(.searchBox)'); 

* : Matches all elements.

not: Filters out all elements matching the given selector

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜