Jquery - When to use "this" and when to use "$(this)"?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1051782/jquery-this-vs-this">jQuery $(this) vs this</a>  </p>
</blockquote>



<p>What is the difference between "this" and "$(this)"?</p>

<p>How do I know which one to use?</p>

<p>Related, I think:</p>

<p>With each, you have the optional parameters.
How is the "i" different than "this" (or "$(this)")?</p>

<pre><code>$('img').each(function(i) { ....code }
</code></pre>

<p>vs.</p>

<pre><code>$('img').each(function() { ....code }
</code></pre>
