Leo the lion Leo the lion - 1 year ago 74
Javascript Question

How to get inner html of li via id of parent div?

I just want to get inner html of li which is in div. Please see my code

<div id="tabs" style="border:none !important;">
<li><a href="#tabs-1" class="active">Flight</a></li>
<li><a href="#tabs-2">Hotel</a></li>
<li><a href="#tabs-3">Car Rental</a></li>
<li><a href="#tabs-4">Cruise</a></li>

Not sharing full code as no need. Is there a simple way to get inner html of li using the parent div id(tabs).

Answer Source
    $("#tabs li").each(function(){


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download