JSFiddle - React, Tailwind, and code Playground
by ChaseWest
HTML
<label for="test">Test: </label>
<input id="test"></input>
CSS
label[for=test]{
color: red;
font-size: 15px;
font-weight: bold;
}
JavaScript
$("label[for=test]").click(function(){
alert("test clicked");
});