JSFiddle - React, Tailwind, and code Playground
HTML
<div class="server" id="32">
<a class="close delete-server">×</a>
<h3><a>SERVER NAME</a></h3>
</div>
JavaScript
$(".server").click(function(e) {
if (!$(e.target).hasClass('delete-server')) {
alert('Show dialog!');
}
});