jQuery Tutorial Tutorials - jQuery event.isPropagationStopped()

jQuery event.isPropagationStopped()

The event.isPropagationStopped method in jQuery will return whether event.stopPropagation() was ever called on this event object.

jQuery event.isPropagationStopped() property Example

example

whether event.stopPropagation() was called.

$("button").click(function( event ) {
  console.log( event.isPropagationStopped() ); // false
  event.stopPropagation();
  console.log( event.isPropagationStopped() ); // true
});

Try now

Date:2019-08-29 10:22:35 From:www.Lautturi.com author:Lautturi