Hi,
This is not very obvious, and I guess some people won't notice that
"is" offers the same functionalities as a potential "hasClass"...
from a "developer friendly" point of view, I think it would be better
to have addClass/toggleClass/hasClass rather than addClass/
toggleClass/is.
Just my 2c ;)
-- Sébastien
Le 07-03-02 à 13:30, John Resig a écrit :
> give this a try:
>
> $(node).is(".class")
>
> --John
>
> On 3/2/07, Sébastien Pierre <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> I was wondering if somebody would be interested in a hasClass(...)
>> function for jQuery. I would definitely find it useful, and am
>> willing to contribute it.
>>
>> -- Sébastien
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/