jQuery event.isPropagationStopped()

Beginner
5 min read
Updated: Nov 2026
3 examples
Events

Definition

Returns a Boolean: true if event.stopPropagation() was called on this event, otherwise false. Added in jQuery 1.3. Takes no arguments. Described in W3C DOM Level 3.

Syntax

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

jQuery
event.isPropagationStopped()  // Boolean — no args

// Official idea
$("button").on("click", function (event) {
  event.isPropagationStopped(); // false → "not called"
  event.stopPropagation();
  event.isPropagationStopped(); // true  → "called"
});

// stopPropagation = parents do not run; same-element handlers still can
// stopImmediatePropagation = also skips remaining same-element handlers
CallWhat it does
eventjQuery event object in the handler
stopPropagation()Sets the flag this method reads
isPropagationStopped()Returns true / false
ArgumentsMethod takes no parameters

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

Parameters

ParameterDescription
Step 1Bind handlers on a child (and optionally a parent) with .on().
Step 2In a handler (or helper), call event.isPropagationStopped().
Step 3Call event.stopPropagation() when parents must not receive the event.

Return Value

Return ValueDescription
BooleanOften true or false depending on the match or state.

jQuery Examples

Example 1 — Official: Not Called, Then Called

Log the flag before and after stopPropagation().

jQuery
function propStopped(event) {
  var msg = event.isPropagationStopped()
    ? "called"
    : "not called";
  $("#out").append(msg + "\\n");
}

$("button").on("click", function (event) {
  $("#out").text("");
  propStopped(event);
  event.stopPropagation();
  propStopped(event);
});
Try It Yourself

How It Works

  1. Helper. Reads the flag and appends called / not called.
  2. Before. Nothing stopped yet → not called.
  3. Stop. stopPropagation() sets the flag.

Example 2 — Parent Does Not Receive the Bubble

Stop on the child; the parent handler never runs.

jQuery
$("#child").on("click", function (event) {
  event.stopPropagation();
  $("#out").text(
    "child stopped. propagation? " +
    event.isPropagationStopped()
  );
});

$("#parent").on("click", function () {
  $("#out").append("\\nparent ran"); // does not run
});
Try It Yourself

How It Works

  1. Child. Calls stopPropagation().
  2. Flag. isPropagationStopped() is true.
  3. Bubble. The event does not reach #parent.

Example 3 — Same-Element Handler B Still Runs

Bubbling stops; other handlers on the same button continue.

jQuery
$("#btn").on("click", function (event) {
  event.stopPropagation();
  $("#out").text(
    "A: propagation? " + event.isPropagationStopped() + "\\n"
  );
});

$("#btn").on("click", function () {
  $("#out").append("Handler B still ran.");
});
Try It Yourself

How It Works

  1. A stops bubble. Parents are blocked.
  2. Flag. Propagation check is true.
  3. B runs. Same-element handlers are not skipped.

Frequently Asked Questions

It returns true if event.stopPropagation() was called on this event object, and false otherwise. It takes no arguments. Available since jQuery 1.3. Described in the W3C DOM Level 3 specification.
When a handler or helper needs to know whether bubbling was halted — for example, skipping parent-level work when a child already called stopPropagation().
stopPropagation() stops the event from reaching parents, but other handlers on the same element still run. stopImmediatePropagation() also skips remaining same-element handlers.
Yes. stopImmediatePropagation() implies stopPropagation(), so isPropagationStopped() becomes true. isImmediatePropagationStopped() is true only for the immediate stop.
No. isPropagationStopped() only reports state. Once stopPropagation() runs, parents will not receive this dispatch.
Yes. In jQuery handlers, return false calls preventDefault() and stopPropagation(). After that, isPropagationStopped() returns true, but isImmediatePropagationStopped() stays false unless you call stopImmediatePropagation().

Next: event.metaKey Property

Detect Command (Mac) or Windows key during mouse/keyboard events.

event.metaKey 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.

9 people found this page helpful