jQuery event.currentTarget

Beginner
5 min read
Updated: Nov 2026
3 examples
Events

Definition

event.currentTarget is the DOM element whose handler is running during the bubbling phase. Added in jQuery 1.3. It typically equals this in a normal .on() handler.

Syntax

Start with these common calls. Keep them short and readable.

jQuery
event.currentTarget  // Element — handler owner (usually === this)
event.target         // Element — where the event started
event.delegateTarget // Element — where .on() was attached

$("p").on("click", function (event) {
  event.currentTarget === this;  // true (official demo)
});
CallWhat it does
event.currentTargetLearn jQuery event.currentTarget: the element whose handler is running, equals this in normal binds, compare with event.target and event.delegateTarget, use with proxy, examples, and FAQs.

Load jQuery before your script (CDN or local file), then wrap DOM work in $(function () { ... }) when needed.

Parameters

ParameterDescription
Step 1Bind with .on("click", handler) (or any event type).
Step 2Accept the event object: function (event) { … }.
Step 3Read event.currentTarget — wrap with $(event.currentTarget) if needed.

Return Value

Return ValueDescription
See examplesCheck the examples below for what this API returns in common cases.

jQuery Examples

Example 1 — Official: currentTarget === this

Click a paragraph; confirm the official equality check.

jQuery
$("p").on("click", function (event) {
  $("#out").text(
    "event.currentTarget === this → " +
    (event.currentTarget === this)
  );
});
Try It Yourself

How It Works

  1. Bind. Every p gets a click handler.
  2. Click. The handler on that paragraph runs.
  3. Compare. event.currentTarget and this are the same element.

Example 2 — currentTarget vs target

Click a child inside a button — origin and handler owner can differ.

jQuery
$("#btn").on("click", function (event) {
  $("#out").text(
    "currentTarget: " + event.currentTarget.id + "\\n" +
    "target: " + event.target.tagName
  );
});
Try It Yourself

How It Works

  1. Bind. The handler is on #btn.
  2. Click child. The event starts on the inner span.
  3. target. event.target is the span (origin).

Example 3 — Delegation: Matched Element vs Parent

With .on("click", "li", fn), currentTarget is the li; delegateTarget is the list.

jQuery
$("#list").on("click", "li", function (event) {
  $("#out").text(
    "currentTarget: " + event.currentTarget.tagName + "\\n" +
    "this text: " + $(this).text() + "\\n" +
    "delegateTarget: #" + event.delegateTarget.id
  );
});
Try It Yourself

How It Works

  1. Attach. The listener lives on #list.
  2. Match. jQuery runs the handler for the clicked li.
  3. currentTarget / this. Both are that li.

Frequently Asked Questions

event.currentTarget is the DOM element whose handler is currently running during the bubbling phase. Available since jQuery 1.3. It typically equals this inside a normal .on() handler.
In a normal handler, yes — event.currentTarget === this is true. If you use jQuery.proxy, Function.prototype.bind, or an arrow function that captures outer this, this can change while event.currentTarget stays the element running the handler.
event.target is where the event started (deepest clicked element). event.currentTarget is the element whose handler is running. Click a span inside a button: target may be the span; currentTarget on the button handler is the button.
With delegation — $("#list").on("click", "li", fn) — this and event.currentTarget are the matched li. event.delegateTarget is #list (where the handler was attached). On a direct bind, delegateTarget usually equals currentTarget.
For typical .on() handlers they match. Prefer event.currentTarget when this might be overridden (proxy, bind, class methods). Prefer this / $(this) for the matched element in delegated handlers — it is the same as currentTarget.
Yes. Each handler on the bubble path sees its own element as currentTarget. event.target stays the original origin for all of them.

Next: event.target Property

Read the DOM element that initiated the event.

event.target Property tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

10 people found this page helpful