JSFiddle - React, Tailwind, and code Playground

by reedfisher

HTML

<input type="password" id="user_password" value="one" /> Event using focus and blur<br />

JavaScript

$(document).ready(function(){
    $("#user_password").focus(function(){
        this.type = "text";
    }).blur(function(){
        this.type = "password";
    })
});