tags:

views:

141

answers:

1

I'm trying to select all the textareas, but not textareas with a certain class associated with them. How do I de-select an element w/ jQuery?

$('textarea' - '.html').autogrow();
+2  A: 

You can use the :not selector, to exclude the textareas containing the class html:

$('textarea:not(.html)').autogrow();
CMS
Awesome, thanks man.
swt83
You're welcome @swt.
CMS