Home › Forums › JavaScript › Dumbfounded by THIS › Reply To: Dumbfounded by THIS
September 3, 2013 at 10:59 pm
#148974
__
Participant
More specifically, this
refers to the execution context you’re currently operating in (which in this case, as TheDoc points out, is the html element that was clicked on). Doing $(this)
isn’t using this
as a selector, it’s wrapping the element itself in a jQuery object so you can use jQuery methods on it.