JSFiddle - React, Tailwind, and code Playground

by mcgrailm

HTML

<table>
  <tr>
    <td>&nbsp;</td>
     <td>foobar</td>
  </tr>
</table>
<table>
  <tr>
    <td>foo</td>
  </tr>
</table>

JavaScript

$('table tr:first td:first').each(function(index, value) {
    if($(this).html() === "&nbsp;"){
        $(this).closest('table').css('display','none');
    }
});