JSFiddle - React, Tailwind, and code Playground
by mohammadAdil
HTML
<input type='text' id='text' />
JavaScript
$(document).ready(function () {
$("#text").focus(function () {
$("#text").css("border", "5px solid black");
});
$("#text").blur(function () {
$("#text").css("border", "1px solid red");
});
});