Event Stoppropagation
# jQuery event.stopPropagation() Method
[ jQuery Event Methods](#)
## Example
Prevent the click event from bubbling up to parent elements:
$("span").click(function(event){
event.stopPropagation();
alert("The span element was clicked.");
});
$("p").click(function(event){
alert("The p element was clicked.");
});
$("div").click(function(){
alert("The div element was clicked.");
});
[Try it yourself Β»](#)
* * *
## Definition and Usage
The event.stopPropagation() method stops the bubbling of an event to parent elements, preventing any parent event handlers from being executed.
**Tip:** Use the [event.isPropagationStopped()](#) method to check if event.stopPropagation() was called on the specified event.
* * *
## Syntax
_event_.stopPropagation()
| Parameter | Description |
| :--- | :--- |
| _event_ | Required. The _event_ parameter comes from the event binding function. |
* * jQuery Event Methods](#)
YouTip