JSFiddle - React, Tailwind, and code Playground
HTML
<ul><li>fsdfsdf<a href="#" rel="close">h</a></li></ul>
JavaScript
$('li a[rel=close]').bind('click', function(e) {
alert(e.target.nodeName);
e.stopPropagation();
e.preventDefault();
})
$("li").click(function() {
alert("li clicked");
})