title: finding number of children using size() in jquery
body: <p>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 number of entries in each menu section so I can use that to resize a padding div at the end of the page.</p>
  
  <pre><code>$('.hideMe').click(function(){ 
      alert( $(this).next('ul').children() );
  }); 
  </code></pre>
  
  <p>So I want to find out the number of li tags under the ul tag.</p>
  
  <pre><code>&lt;h3 class="hideMe"&gt;Items&lt;/h3&gt;
      &lt;ul class="myul"&gt;
          &lt;li id="001" &gt;
              &lt;a href="products.php?item=001"&gt;Item 1&lt;/a&gt;
          &lt;/li&gt;
          &lt;li id="002" &gt;
              &lt;a href="products.php?item=002"&gt;Item 2&lt;/a&gt;
          &lt;/li&gt;   
          &lt;li id="003" &gt;
          &lt;a href="products.php?item=003"&gt;Item 3&lt;/a&gt;
          &lt;/li&gt;   
  </code></pre>
  
  <p>Any ideas? Thanks.</p>