JSFiddle - React, Tailwind, and code Playground

HTML

<table>
  <tr>
    <td id="falseValue"> XYZ </td>
    <td id="trueValue"> ABC </td>
  </tr>
</table>

JavaScript

$("td").each(function() {
  var i = $(this).attr("id");
  if (i === 'trueValue') {
    $(this).css({
      'backgroundColor': '#3399ff',
      'color': 'white'
    });
  }

});