The event.stopImmediatePropagation() is an inbuilt method in jQuery used to stop the rest of the event handlers from being executed for the selected element.
Parameter: No parameter is required.
Return Value: This method return the selected element with the applied change.
Example-1: Here, only first pop box will appear after the this method will stop the other pop box to appear.
After click on the “p” and “div” element. Event will only perform for the div element:
- jQuery | off() Method
- jQuery | before() Method
- jQuery | die() Method
- jQuery | is() Method
- JQuery | now() method
- jQuery | css() Method
- JQuery | map() Method
- jQuery | get() Method
- jQuery | contains() Method
- jQuery | add() method with Example
- JQuery | isNumeric() method
- JQuery | parseJSON() method
- JQuery | isPlainObject() Method
- JQuery | isFunction() method
- JQuery | isXMLDoc() Method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.