JSFiddle - React, Tailwind, and code Playground

by eddiemonge

HTML

<input>    <a id="test" href="#">Hello</a>

CSS

#test {
    color: green;
}

JavaScript

$('#test').bind('focus', function(){
    this.style.color = 'orange';
});
$('#test').mouseover(function(){
    this.style.color = 'red';
});