stopImmeidatePropagation() in jQuery is used to prevent other event handlers from being executed on the same element. Let’s see its syntax and example.
As you can see in the above syntax, this method does not take any argument. That is to say, It does not return any value.
For instance, there are 3 event handlers attached to the onClick event on p tag. However, only the first event handler will get executed.
In conclusion, you can use stopImmediatePropagation() in jQuery if you want to prioritize a specific event handler over other handlers.