I have got the below HTML as a response .
<div id="69" class="activateUiHTML" data-role="collapsible">
<div class="prd-items-detials"> </div>
<div style="" class="Topping-details" id="69">
<section id="topping_tsection_69">
<aside>
<section class="secclass"><a data-id="69" topp_name="Honey with Carmel 10 ML" class="tpActive">Honey with Carmel 10 ML</a></section>
</aside>
<aside>
<section class="secclass"><a data-id="70" topp_name="Honey with Carmel 10 ML" class="tpActive">Honey with Carmel 10 ML</a></section>
</aside>
</section>
</div>
</div>
I need to find out if any section has got class as "tpActive" ??
I wrote the below , but don't know how to check further ??
$('#'+v_item_id+'.activateUiHTML').find(".Topping-details").find("section")
could anybody please help me .
Updated Question
if($('#'+v_item_id+'.activateUiHTML').find("Toppingdetails").find("section").hasClass("tpActive")) {
alert('has');
}else {
alert('No');
}