Anyone guide the difference of Jquery "this" and $(this)
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3722544/what-is-the-difference-between-this-and-this">What is the difference between $(this) and this</a>  </p>
</blockquote>



<p>Anyone guide the difference of Jquery <code>this</code> and <code>$(this)</code>. Like in the below code I when I try to use <code>$(this).id</code> does not work and if I use <code>this.id</code> its working. I thought there is no difference between <code>$(this)</code> and <code>this</code>. I appreciate If someone explain the reason.</p>

<pre><code>$(function($){
 //This work

  $('p').append( $('input').map(function(){   
     return  this.id;
  }).get().join(', '));

//This is not working? Could you explain what's the reason

  $('p').append( $('input').map(function(){   
     return  $(this).id;
  }).get().join(', '));

});
</code></pre>
