Event Stopimmediatepropagation
# jQuery event.stopImmediatePropagation() Method
[ jQuery Event Methods](#)
## Example
Execute the first event handler and prevent the remaining event handlers from being executed:
$("div").click(function(event){
alert("Event handler 1 executed");
event.stopImmediatePropagation();
});
$("div").click(function(event){
alert("Event handler 2 executed");
});
$("div").click(function(event){
alert("Event handler 3 executed");
});
[Try it Β»](#)
* * *
## Definition and Usage
The event.stopImmediatePropagation() method prevents the remaining event handlers from being executed.
This method prevents the event from bubbling up the DOM tree.
**Tip:** Use the [event.isImmediatePropagationStopped()](#) method to check if this method was called on the specified event.
* * *
## Syntax
_event_.stopImmediatePropagation()
| Parameter | Description |
| :--- | :--- |
| _event_ | Required. The _event_ parameter comes from the event binding function. |
* * jQuery Event Methods](#)
YouTip