When using jQuery on
, is there a way to get the selected element from within the handler, as opposed to the event target? For example, none of the following is related to body
:
$('body').on('click', 'h1', function(e){
console.log(e.target);
console.log(e.currentTarget);
console.log(this);
});