Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Dumbfounded by THIS Reply To: Dumbfounded by THIS

#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.