JSFiddle - React, Tailwind, and code Playground

by 3rror404

HTML

<input type="text" id="username"/>
<input type="password" id="password"/>

JavaScript

$(document).ready(function(){
  $("#username").css("background-color","red");
  $("#password").css("background-color","red");
  $("#username").on("input", function(){
  	$(this).css("background-color","none");
  })
  $("#password").on("input", function(){$(this).css("background-color","none");
});