jQuery Tutorial Tutorials - jQuery event.stopImmediatePropagation()

jQuery event.stopImmediatePropagation()

The event.stopImmediatePropagation() method in jQuery is used to keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree.

jQuery event.stopImmediatePropagation() 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 18:53:32 From:www.Lautturi.com author:Lautturi