On 4/23/07, wls <[EMAIL PROTECTED]> wrote:

How does one tell if an element has a class


if( $("#myElement").is(".myClass") ) {
   // do super cool stuff...
}

or alternatively, get a list of classes?


Try this:

var classes = $("#myElement").attr("class").split(" ");

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com

Reply via email to