JSFiddle - React, Tailwind, and code Playground
by Zhitao Gong
HTML
<table class="tableclass">
<tbody>
<tr>
<th>helo1</th>
<th>helo2</th>
</tr>
<tr class="odd">
<td>helo3</td>
<td>helo4</td>
</tr>
<tr class="even">
<td>helo5</td>
<td>helo6</td>
</tr>
<tr class="odd current">
<td>hide1</td>
<td>hide2</td>
</tr>
</tbody>
</table>
JavaScript
$('tr:not(.current)').each(function() {
if ($(this).attr('class') != undefined)
$(this).hide();
});