JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<td class="table-col">
<div class="group-one">
<input type="checkbox" /> Checkbox
</div>
</td>
</tr>
</table>
CSS
td {
border: 1px solid gray;
width: 200px;
}
td.selected {
background-color: red;
}
JavaScript
$("input:checkbox").change(function () {
$(this).closest(".table-col").toggleClass('selected', this.checked);
});