JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<td>
<input type="checkbox">
</td>
<td>
This is a row
</td>
</tr>
<tr>
<td>
<input type="checkbox">
</td>
<td>
This is a row
</td>
</tr>
<tr>
<td>
<input type="checkbox">
</td>
<td>
This is a row
</td>
</tr>
<tr>
<td>
<input type="checkbox">
</td>
<td>
This is a row
</td>
</tr>
</table>
<button onclick="doThing()">
Click Me!
</button>
CSS
td {
border: 1px solid black;
}
JavaScript
function doThing() {
$("input:not(:checked)").closest('tr').remove();
}