JSFiddle - React, Tailwind, and code Playground
HTML
<p>
Invoking on event object:
<br/>
<a href="#" class="stop" onclick="event.stopImmediatePropagation();">Stop immediate</a>
</p>
<p>
Invoking on jQuery event object:
<br/>
<a href="#" class="jqueryStop" onclick="jQuery.event.fix(event).stopImmediatePropagation();">jQuery - stop immediate</a>
</p>
JavaScript
$("a.stop").click(function(e) {
alert('event not stopped');
});
$("a.jqueryStop").click(function(e) {
alert('event not stopped');
});