title: jQuery Children length of an ol
body: <p>I am trying to count the child elements of an OL</p>
  
  <p><strong>jQuery :</strong></p>
  
  <pre><code>$(document).ready(function(){
  
  $("#my_select").change(function(){
      alert($("#ol3").children.length);
                                       });});
  </code></pre>
  
  <p><strong>HTML:</strong> </p>
  
  <pre><code>&lt;ol id="ol1"&gt;
      &lt;li class="2"&gt;Location 1-1&lt;/li&gt;
  &lt;/ol&gt;
  
  &lt;ol id="ol2"&gt;
      &lt;li class="15"&gt;Location 2-1&lt;/li&gt;
      &lt;li class="20"&gt;Location 2-2&lt;/li&gt;
  &lt;/ol&gt;
  
  &lt;ol id="ol3"&gt;
      &lt;li class="17"&gt;Location 3-1&lt;/li&gt;
      &lt;li class="16"&gt;Location 3-2&lt;/li&gt;
      &lt;li class="14"&gt;Location 3-3&lt;/li&gt;
  &lt;/ol&gt;
  </code></pre>
  
  <p>I always get the number 2 no matter how many li are there under the ol. </p>
  
  <p>Know what's going on..?</p>