jQuery Tutorial Tutorials - jQuery event.isImmediatePropagationStopped()

jQuery event.isImmediatePropagationStopped()

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

jQuery event.isImmediatePropagationStopped() property Example

example

whether event.stopImmediatePropagation() was called.

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

Try now

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