jQuery get multiple class name and convert them to an array
<p>Suppose I have an element look likes</p>

<pre><code>&lt;div class="amy mary peter john tom"&gt;abc&lt;/div&gt;
</code></pre>

<p>I will use the jQuery to get the class name</p>

<pre><code>var classname = $(div).attr('class');
</code></pre>

<p>Since the result is "amy mary peter john tom", how can I convert this string to array?</p>

<p>Somethings likes <code>var classname = ["amy", "mary", "peter", "john", "tom"];</code></p>

<p>Thanks</p>
