JSFiddle - React, Tailwind, and code Playground

HTML

<table>
  <tbody>
    <tr>
      <td>
        <b class="abcName">Bob</b>
      </td>
    </tr>
  </tbody>
</table>

CSS

.xyzName {
    color: red;
}

JavaScript

function customizefields(a) {
    $('td b').each(function(){
        if ($(this).text().indexOf(a) === 0) {
            this.className = 'xyzName';
        }
    });
}
setInterval(function(){customizefields('Bob')}, 1000);