JSFiddle - React, Tailwind, and code Playground

HTML

<table>
    <tr>
        <td><input type="checkbox" id="something" name="something" /></td>
        <td>asdasd</td>
    </tr
</table>

JavaScript

$("tr").click(function(e) {
    alert("tr clicked");
});

$("input[type=checkbox]").click(function(event) {
    event.stopPropagation();
    alert("checkbox clicked");
});