+ 1
Jquery event.currentTarget vs this
In jquery what is the difference between event.currentTarget and this when we try to access an element with an event handler? Which one is better to use?
1 Réponse
+ 6
This can help:
Official Docs
https://api.jquery.com/event.currentTarget/
JQuery $(this) vs $(event.currentTarget):
https://github.com/airbnb/javascript/issues/389