this vs $(this) [duplicate]
Possible Duplicate: jQuery $(this) vs this I'm new to this and trying to get my concept right. There has been many instances of the use of " this " and " $(this) ". Can someone please explain the difference and in what condition that we use the two different "this"? In jQuery functions, this most often refers to the actual DOM element you're dealing with, whereas $(this) returns a jQuery object that wraps the element. In JavaScript, this always refers to the current scope. Many of jQuery's functions will set that scope to be the element you're working with. For instance $("#someElement").click