event.targetis a reference to the DOM node.
$(event.target)is a jQuery object that wraps a DOM node, which allows you to use jQuery magic to request DOM control.
In other words, you can do this:
$(event.target).addClass('myClass');
but you cannot do this:
event.tagert.addClass('myClass');
source
share