[jQuery] Checking for a class?

[jQuery] Checking for a class?

How can I check to see if there is a particular css class on an element?
Presumably I could just do $("#id").attr("class"); but I'm doing it in a loop where the class names have multiple classes on them and I only want to check for a specific one. Bith loathed to write a regexp for something so simple.
Cheers
Tom
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/