Select all text box that DOES NOT have a specific class in jQuery

I have several text areas:

<asp:textbox class="input ThisIsRussia" ..... /> <asp:textbox class="input" ..... /> <asp:textbox class="input ThisIsSparta" ..... /> <asp:textbox class="input" ..... /> 

Now I need to select the entire text field / text field that does not have the class "ThisIsSparta", how to do this?

I was checking out the jQuery selectors website and it said I should use

 [name!=value] 

for this purpose, but when I did this:

 $('textarea[class!=ThisIsSparta]').SlideUp(); 

it affected my spartan text area too! Did I miss something?

+4
source share
1 answer
 $('textarea').not('.ThisIsSparta'); 
+6
source

All Articles