selecting the first of multiple classes
<p>Not sure if you can do this, but I want to select the first of two classes of an element with jQuery and return it's first class only.</p>

<pre><code>&lt;div class="module blue"&gt;
</code></pre>

<p>I want to return 'module'.</p>

<p>tried this:</p>

<pre><code>var state = $('body').attr('class').first();
</code></pre>

<p>but none of that seems to work, thanks for any advice.</p>
