how i get selected class of li in jquery
<ul id="attached_deals_tab">
<li class="active"></li>
<li></li>
<li>
<ul>
<li class="active"></li>
<li></li>
</ul>
</li>
</ul>
<!--jquery code-->
$('#attached_deals_tab li.active');