Easy Tutorial
❮ Html Escapeselector Event Die ❯

jQuery event.stopPropagation() Method

jQuery Event Methods

Example

Prevent the click event from bubbling to the parent element:


Definition and Usage

The event.stopPropagation() method prevents the event from bubbling up to the parent elements, preventing any parent event handlers from being executed.

Tip: Use the event.isPropagationStopped() method to check whether this method was called on the specified event.


Syntax

Parameter Description
event Required. The event parameter comes from the event binding function.

jQuery Event Methods

❮ Html Escapeselector Event Die ❯