how to isolate one of the two classes
<p>i have a link</p>

<pre><code>&lt;a href="" class="states state1"&gt;More Info&lt;/a&gt;
</code></pre>

<p>and I want to get the class state1 and not states</p>

<p>I have tried this</p>

<pre><code>$(".states").attr("class")

"states state1"
</code></pre>

<p>but when i try </p>

<pre><code>&gt;&gt; $(".states").attr("class").not(".states")
TypeError: $(".states").attr("class").not is not a function
&gt;&gt;&gt; $(".states").attr("class").not("states")
TypeError: $(".states").attr("class").not is not a function
</code></pre>

<p>any ideas how to get the other class</p>
