jQuery event.stopImmediatePropagation()
Learn all about the jQuery function event.stopImmediatePropagation().
In addition to keeping any additional handlers on an element from being executed, this method also stops the bubbling by implicitly calling event.stopPropagation()
. To simply prevent the event from bubbling to ancestor elements but allow other event handlers to execute on the same element, we can use event.stopPropagation()
instead.
Use event.isImmediatePropagationStopped()
to know whether this method was ever called (on that event object).