Scott... www.jquery.com/api
-----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sauyet Sent: Tuesday, April 17, 2007 12:09 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: hasClass Geoffrey Knutzen wrote: > How can I test if an element has a specific class? > If I have > <div class="foo bar"> > > How can I check if the element has class=bar $("#myDiv").is(".bar"); For all the great documentation JQuery has, some things are hard to find. This is at http://docs.jquery.com/DOM/Traversing#is.28_expr_.29 which doesn't seem to have much to do with traversing the DOM to me. I don't know if I'm alone, but I think a plain alphabetic list of functions would be a good addition to the docs. -- Scott