[jQuery] hasElementClass
[jQuery] hasElementClass
hello,
I am in the process of converting some MochiKit code to jquery.
I was used to a comfortable funciton
hasElementClass(element, 'classname')
which checked if the element has at least the css_class named
"classname"
what is the best way to have this in jQuery?
Harald