English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

jQuery event.isPropagationStopped() Method

jQuery Events

The event.isPropagationStopped() method checks whether event.stopPropagation() has been called on this event objectevent.stopPropagation().

If event.stopPropagation() is called, this method returns true; otherwise, it returns false.

This method does not accept any parameters.

Syntax:

event.isPropagationStopped()

Instance

Check if event.stopPropagation() was called:

$("div").click(function(event){
  event.stopPropagation();
  alert(event.isPropagationStopped());
});
Test and see‹/›

Parameter Value

ParameterDescription
eventTheEventParameters come from the event binding feature

jQuery Events