On 10/12/06, Webunity | Gilles van den Hoven <[EMAIL PROTECTED]> wrote:
> But a quick question, what do you mean with "before I found out about
> the "is" method"? Can you give an example an how to use this "is" method?
I added a hasClass method because I needed to check a matched element
to see if it had a particular class.
$(element).hasClass('.selected');
So instead I could have just used the is method to see if the class
was present like this.
$(element).is('.selected');
More info on visualjquery.com > DOM > Traversing > is(expr)
--
Brandon Aaron
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/