title: Get class list for element with jQuery
body: <p>Is there a way in jQuery to loop through or assign to an array all of the classes that are assigned to an element?</p>
  
  <p>ex.</p>
  
  <pre><code>&lt;div class="Lorem ipsum dolor_spec sit amet"&gt;Hello World!&lt;/div&gt;
  </code></pre>
  
  <p>I will be looking for a "special" class as in "dolor_spec" above.  I know that I could use hasClass() but the actual class name may not necessarily be known at the time.</p>