JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr class="val">
<td class="price">.price</td>
<td class="remove price">.remove</td>
<td class="quantity">.quantity</td>
<td>nothing</td>
</tr>
<tr>
<td class="price">.price</td>
<td class="remove">.remove</td>
<td class="quantity">.quantity</td>
<td>nothing</td>
</tr>
</table>
CSS
.hidetaxfields {
background-color: red;
}
JavaScript
$('.val>td').filter(function () {
var that = $(this);
return that.hasClass('price') || that.hasClass('remove') || that.hasClass('quantity');
}).addClass('hidetaxfields');