Can anyone explain me why in jQuery inside an event binding:
this === event.target
returns true
but
$(this) === $(event.target)
returns false?
Example Code:
$('#btnSubmit').on('click', function(event) {
console.log( event.target === this); // true
console.log( $(event.target) === $(this)); // false
})
Edit: I can't see an explanation for my question in the mentioned question