I have a jquery menu that has so many entries that it extends further than the length of the page. I want to get the amount of entries in each menu section so I can use that number to resize a padding div at the end of the page.
$('.hideMe').click(function(){
alert( $(this).next('ul').children() );
});
So I want to find out the amount of li tags under the ul tag.
<h3 class="hideMe">Items</h3>
<ul class="myul">
<li id="001" >
<a href="products.php?item=001">Item 1</a>
</li>
<li id="002" >
<a href="products.php?item=002">Item 2</a>
</li>
<li id="003" >
<a href="products.php?item=003">Item 3</a>
</li>
Any ideas? Thanks.