[jQuery] How to Query a DOM elements Class

[jQuery] How to Query a DOM elements Class

I'm wondering how to query a DOM elements class, or check if an element has a class using jQuery to replace:
document.getElementsByTagName("body")[0].className;
I want to check if another element has the same class as the body element.
Eric
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/