How to get the selected item from UL using jQuery?
<p>I am creating a tab control using Ul and Divs. Ul is used to display the tab heads. When the user selects one Tab (ie , 'Li') ,the tab back color get changed with respect to others.</p>

<p>I want to get the Selected and not selected li in that Ul .</p>

<p>I used </p>

<pre><code> $(".tab li:selected").css("background-color","red");
 $(".tab li:deselected").css("background-color","white");
</code></pre>

<p>It 's not working, I know the code does not work .just guess it.
 Now may you understood my problem,right?</p>
