JSFiddle - React, Tailwind, and code Playground

by htmlzengarden

HTML

<input type="password" value="seeecret"><button>afficher</button>

JavaScript

$('button').on('click', function(){
    $('input').css('color','red').attr('type','text');
});