how to get fist class name from class like class="class1 abc" get 'class1'
<p>i have li that has class name more then one ,</p>

<p>so i want to get first class name </p>

<pre><code>  For Example

&lt;li class="class1 smfont"&gt;1&lt;li&gt;
&lt;li class="class2 smfont"&gt;2&lt;li&gt;
&lt;li class="class3 smfont"&gt;3&lt;li&gt;
&lt;li class="class5 smfont"&gt;5&lt;li&gt;
</code></pre>

<p>i want to get the class name only class1, class2, class3....
by jquery</p>

<p>i use</p>

<pre><code>var $filteredData = $data.find('li[class=' + $filterType + ']');
</code></pre>

<p>but not work</p>
