JSFiddle - React, Tailwind, and code Playground

by Sethu raman

HTML

<button class="myButtonl" onclick='showForm();'>Create a Player</button>

<div id="div1" style="display:none;">
    <form action="team.php" method="POST" name="profiles">
        <div>Team Name: <input type="text" name="psn" value=""></div>
        <input type="submit">
    </form>
</div>

JavaScript

function showForm() { 
       $('#div1').toggle();
    }