The current DOM element within the event bubbling phase.

.event.currentTarget()🡢 Element

This property will typically be equal to the this of the function.

If you are using jQuery.proxy or another form of scope manipulation, this will be equal to whatever context you have provided, not event.currentTarget

Alert that currentTarget matches the `this` keyword.

$("p").click(function (event) {
  alert(event.currentTarget === this); // true

Looking for a Web Developer?


Hi! I'm Basti, author of this site. If you are looking for a web developer with 15+ years of experience, holla at me!

Be it the good 'ol jQuery, vanilla JS or modern frameworks like Vue and Svelte, front- or backend, I can help you.

Just write me at jobs@jqapi.com :)