How to use jquery Attr() to select only first attribute?
<p>I have a div as follows:</p>

<pre><code>&lt;DIV CLASS="variable productPopup"&gt;&lt;/DIV&gt;
</code></pre>

<p>When assigning it to a var, how do I only select variable? Please note that variable changes, so it needs to select the first item, not literally the words "variable"</p>

<pre><code>var ID = $(this).attr("class");
</code></pre>
