jQuery's attr - return multiple classes not just the 1st.
- by nobosh
Given a div such as:
<div class="widget block dock clock">yada yada</div>
I'd like to be abe to use JQUERY's $(div).attr('class');
to find all the classes, but the JQUERY.attr only return widget. Is there a way with JQUERY to return all the classes defined for the element?
Thanks