JSFiddle - React, Tailwind, and code Playground

by Bob Stein

HTML

<input id="one" name="one" value="One">
<br>
<input id="two" name="two" value="Two">
<br>
<input id="three" name="three" value="Three">

CSS

input[value="red"] {
  color: red;
}

JavaScript

$("#one").prop("value", "red");
$("#two").attr("value", "red");