title: Selecting the text out of an <a> element with jQuery?
body: <p>I'm trying to grab the text section of this html:</p>
  
  <pre><code>&lt;li class="location"&gt;&lt;a href="#"&gt;Some Text&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>with this jQuery:</p>
  
  <pre><code>$('.location').off('click').click(function() {
  alert($(this).children('a')[0].text());
  }
  </code></pre>
  
  <p>So that my alert displays "Some Text". I'm just not sure why it's not working.</p>