jquery - get class of clicked li element
<p>I can't figure it out how to get an element of a clicked list item. When I use this I get "node-205" every time.</p>

<pre><code>.find('&gt; ul')
.tabs({
 selectedClass: 'active',
 select: function(event, ui){ 
 $(this).children('li').attr('class')) // this shows only the first element of the list
 } ,
 cookie: { expires: 0},
 fx: fx
 })
</code></pre>

<p>the list:</p>

<pre><code>&lt;ul class="tabs"&gt;
    &lt;li class="node-205"&gt;&lt;/li&gt;
    &lt;li class="node-150"&gt;&lt;/li&gt;
    &lt;li class="node-160"&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>I hope someone can help me.</p>
