title: jQuery hasClass doesn't work looping through children
body: <p>I'm trying to look for certain elements if they contain a certain class in a Wordpress Widget. But what I can't understand is why the <code>authors.hasClass()</code> is OK, but the <code>currentAuthor.hasClass()</code> throws an error saying it's not a function!</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;ul&gt;
      &lt;li class="active"&gt;&lt;/li&gt;
      &lt;li&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p><strong>JS</strong></p>
  
  <pre><code>var authors = jQuery("li");
  authors.hasClass("active");
  
  for (i = 0; i &lt; authors.length; i++) { 
      var currentAuthor = authors[i];
      currentAuthor.hasClass("active");
  }
  </code></pre>