Hi guys,

I think it's absolutely worth thinking about adding a hasClass shortcut to
the core, since I also missed the shortcut many times. the is() function is
pretty nice, but people would really guess there is a hasClass.

-Paul

2007/3/4, Sébastien Pierre <[EMAIL PROTECTED]>:

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
discuss@jquery.com
http://jquery.com/discuss/




--
--
Paul Bakaus
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to