I have a function that takes an element, and then shows all the other elements that have the same class. I know how to show the elements of a give class, but I dont know how to find out what the class of the given element is. Any ideas? I've looked at the docs quite a bit, but I'm not seeing anything.
views:
22answers:
2
+1
A:
Nevermind. elem.attr("class")
does the trick. I feel kinda silly; sorry to bug you all.
Esteban Araya
2010-07-01 22:24:10