JSFiddle - React, Tailwind, and code Playground

HTML

<table>
<tr><td style="padding-left:20px;" class="content">this should go</td></tr>

<tr class="dgItem"><td class="content">this should stay</td></tr>

</table>

JavaScript

$('tr:not(.dgItem) > td.content').remove();