title: How to get text of number elements and put into array with jquery?
body: <p>I try to to get text of number elements and put into array with jquery.but get this error that : </p>
  
  <blockquote>
    <p>Uncaught TypeError: aTags[i].parent is not a function.</p>
  </blockquote>
  
  <p>How to solve this?</p>
  
  <pre><code>    $('#flight-stops-filter ul li a').click(function() {
      var aTags=$('#flight-stops-filter ul li a');
      stops = [];
      for (var i = 0; i &lt; aTags.length; i++) {
          if (aTags[i].parent("li").hasClass('active')) {
              alert(this.text);
              stops.push(this.text.substr(0, 1));
          }
      }
  
  });
  </code></pre>