JSFiddle - React, Tailwind, and code Playground
HTML
<button id="colorizeButtons">Colorize Buttons</button>
<input type="text" id="paramText" />
<table id="table">
<tr>
<td>Somethig</td>
<td><button text="special">Button 1</button></td>
</tr>
<tr>
<td>Somethig</td>
<td><button text="special">Button 1</button></td>
</tr>
<tr>
<td>Somethig</td>
<td><button text="usual">Button 1</button></td>
</tr>
</table>
JavaScript
$('#colorizeButtons').bind('click', function(){
var paramText = $('#paramText').val();
$("#table button[text=" + paramText + "]").css("color", "red");
})