jQuery event.stopPropagation() Method
jQuery event.stopPropagation() Method
The event.stopPropagation() method is used to stop the bubbling of an event to parent elements i.e, it prevents any parent event handlers from being executed.
Syntax:-
Its syntax is:- event.stopPropagation()
Further Explanationon:-
Parameter | Description |
---|---|
event | Required. The event parameter comes from the event binding function |