JSFiddle - React, Tailwind, and code Playground

HTML

<table border="1">
    <tr>
                <td>A</td>
                <td>c</td>
                <td>c</td>
    </tr>
    <tr>
                <td>B</td>
                <td>c</td>
                <td>c</td>
    </tr>
    <tr>
                <td>A</td>
                <td>c</td>
                <td>c</td>
    </tr>
</table>
<input type="button" value="hide!" />

JavaScript

$("input").click(function() {
    $("table tr").filter(function() {
        return ($(this).find('td:first:contains("B")').length == 0);
    }).hide();
});