JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/dot-luv/jquery-ui.css">
<div>
<span>Test</span>
</div>

JavaScript

$("span").click(function() {
    alert("span clicked");
    arguments[0].stopPropagation();
});
$("div").click(function() {
    alert("div clicked");
});