title: jQuery each this
body: <pre><code>var slides = $(".promo-slide");
  slides.each(function(key, value){
      if (key == 1) {
          this.addClass("first");
      }
  });
  </code></pre>
  
  <p>Why do I get an error saying:</p>
  
  <pre><code>Uncaught TypeError: Object #&lt;HTMLDivElement&gt; has no method 'addClass'
  </code></pre>
  
  <p>From the above code?</p>