JSFiddle - React, Tailwind, and code Playground

by gmcalab

HTML

<input type="button" id="mybutton" value="poop"/>

<div id="test">hello world</div>

JavaScript

$('#mybutton').click(function(){
       alert('hello world'); 
    
    
        $('#test').hide('fade');
                       
    
});


$('#mybutton').click();