title: How to get class name using jquery
body: <p>Suppose I have an element like this:</p>
  
  <pre><code>&lt;div id="dv" class="red green blue"&gt;Something Here !!&lt;/div&gt;
  </code></pre>
  
  <p>I used this:</p>
  
  <pre><code>alert($('#dv').attr('class'));
  </code></pre>
  
  <p>But it gives me all three at the same time, I need individually probably stored in an array.</p>
  
  <p>How do I get each of those class names using jquery? Should be simple, right?</p>