JSFiddle - React, Tailwind, and code Playground

by Shree Khanal

HTML

<input type="password"  id="txtPassword" name="txtPassword" placeholder="........" style="">

JavaScript

$(document).ready(function () {
            if ($('#txtPassword').click(function () {
                $("#txtPassword").css({ "background-color": "red" });
            }));
        });