title: Loop through UL LI to get <a> text values
body: <p>How to loop loop through a <code>UL LI</code> list to get my <code>&lt;a&gt;</code> text values?</p>
  
  <p>Here's what I have tried:</p>
  
  <pre><code>&lt;ul class="tabs"&gt;
      &lt;li&gt;&lt;a href='#tab1'&gt;tabOne&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href='#tab2'&gt;tabTwo&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href='#tab3'&gt;tabThree&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href='#tab4'&gt;tabFour&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  
  function test() {
      var x = $("ul.tabs li").length
      alert(x)
      for (i = 0; i &lt; x i++) { 
  
      }
  }
  </code></pre>