JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" value="111" /><input type="text" value="222" />
CSS
.red { color: red; }
JavaScript
$('input[value="222"]').addClass('red');
<input type="text" value="111" /><input type="text" value="222" />
.red { color: red; }
$('input[value="222"]').addClass('red');