JSFiddle - React, Tailwind, and code Playground

HTML

<table>
    <tr style="background-color: #FF0000">
        <td>test</td>
    </tr>
    <tr style="background-color: #FFFF00">
        <td>test</td>
    </tr>
</table>

JavaScript

$('table tr').filter(function() {
    return $(this).css('backgroundColor') != 'rgb(255, 0, 0)';
}).hide();