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
精彩评论