JSFiddle - React, Tailwind, and code Playground
by shaneburgess
HTML
<input class="input" id="one">
<input class="input" id="two">
<input class="input" id="three">
<input class="input" id="four">
JavaScript
//When click on any input
$(".input").click(function(){
//Set them all to red
$(".input").css("border","1px solid red");
//Set this one to blue
$(this).css("border","1px solid blue");
});