> Is there a "hasClass(cssClass, isHas)" function?  I want to do thing A to
> all elements of class X, and thing B to all elements that _don't_ have class
> X.  isHas would be a parameter that says hasClass or doesNotHaveClass.

Oops - also, there's no hasClass(), but there is .is(), for example:

if ( $(something).is(".someclass") ) {
   // do stuff
}

you can throw any expression in .is()  (it works the same as .filter())

--John

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to