<ul id="attached_deals_tab" class="nav nav-tabs">
<li class="active">
<a data-toggle="tab" href="#Test1">Test1</a>
</li>
<li class="">
<a data-toggle="tab" href="#Test2">Test2</a>
</li>
</ul>
With a jquery like this, I could say get me all list items:
$('#attached_deals_tab li');
But how can I say show me only the li
that has class="active"
? In one line please.
I know how to negate it:
$('#attached_deals_tab li:not(.active)');
But not the other way around...
$('#attached_deals_tab li.active');