I have inherited some jQuery and HTML and need to find out if any of the HTML elements have a class name of any value. I’ve read around a few threads and Googled but can’t find anything useful.
So in pseudo-code what I’d like is:
Loop through all HTML elements
If any of them have any class at all:
Get their class name as a string
Hoping that makes sense!
Try:
Why you would want to do this, I have no idea. It is very inefficient