JSFiddle - React, Tailwind, and code Playground

by kachibito

HTML

<input type="submit" value="Add Second Driver" id="driver" />
<input type="text" id="text" />

JavaScript

$().ready = function() {
    $('#text').hide();
    
    $("#driver").click(function() {
        $('#text').fadeToggle('slow');
    });

}();