jQuery – event.stopPropagation() Method
In the following, the click event will NOT bubble up to its parent element such as a p or div. What this means is if the parent elements have click events attached to them, they will not fire when clicking on the span , even though the span is a part of those elements.