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

Reply via email to