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.
Share
Nevermind.
elem.attr("class")does the trick. I feel kinda silly; sorry to bug you all.