title: jQuery's attr - return multiple classes not just the 1st
body: <p>Given a div such as:</p>
  
  <pre><code>&lt;div class="widget block dock clock"&gt;yada yada&lt;/div&gt;
  </code></pre>
  
  <p>I'd like to be abe to use JQUERY's <code>$(div).attr('class');</code></p>
  
  <p>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?</p>
  
  <p>Thanks</p>