jQuery event.isImmediatePropagationStopped()

Beginner
5 min read
Updated: Nov 2026
3 examples
Events

Definition

Returns a Boolean: true if event.stopImmediatePropagation() was called on this event, otherwise false. Added in jQuery 1.3. Takes no arguments.

Syntax

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

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

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

// stopImmediate = skip remaining same-element handlers + stop bubble
// stopPropagation = stop bubble only (same-element handlers still run)
CallWhat it does
eventjQuery event object in the handler
stopImmediatePropagation()Sets the flag this method reads
isImmediatePropagationStopped()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 one or more handlers on the same element with .on().
Step 2In a handler (or helper), call event.isImmediatePropagationStopped().
Step 3Call event.stopImmediatePropagation() when the queue must end.

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 stopImmediatePropagation().

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

$("button").on("click", function (event) {
  $("#out").text("");
  immediatePropStopped(event);
  event.stopImmediatePropagation();
  immediatePropStopped(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. stopImmediatePropagation() sets the flag.

Example 2 — Second Handler Never Runs

Halt the queue so a later same-element handler is skipped.

jQuery
$("#btn").on("click", function (event) {
  $("#out").text("Handler A ran.\\n");
  event.stopImmediatePropagation();
});

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

How It Works

  1. Two binds. A and B are both on #btn.
  2. A runs first. It logs, then stops immediately.
  3. B skipped. Remaining same-element handlers are not called.

Example 3 — stopPropagation Still Runs Handler B

Contrast: bubble stops, but same-element handlers continue.

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

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

How It Works

  1. stopPropagation. Blocks parents only.
  2. Immediate flag. Stays false.
  3. Propagation flag. Becomes true.

Frequently Asked Questions

It returns true if event.stopImmediatePropagation() was called on this event object, and false otherwise. It takes no arguments. Available since jQuery 1.3.
When a helper or later logic needs to know whether the handler queue on this element was already halted — for example, skipping analytics after a primary handler called stopImmediatePropagation().
stopPropagation() stops bubbling to parents but other handlers on the same element still run. stopImmediatePropagation() stops remaining same-element handlers and also stops bubbling.
No. isPropagationStopped() reports stopPropagation(). isImmediatePropagationStopped() reports stopImmediatePropagation(). Calling stopImmediate also implies propagation was stopped, but stopPropagation alone does not set the immediate flag.
No. The check is read-only. Once stopImmediatePropagation() runs, remaining handlers on that element are skipped for the current dispatch.
No. In jQuery, return false calls preventDefault() and stopPropagation() only. Remaining handlers on the same element may still run unless you call stopImmediatePropagation() explicitly.

Next: event.stopPropagation() Method

Stop bubbling while letting same-element handlers finish.

event.stopPropagation() Method 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