JSFiddle - React, Tailwind, and code Playground
HTML
<button type="button">Hide Me Quick</button>
<input type="button" name="hid" value="Hide Me slowly">
JavaScript
$(":button").click(function(){
alert('hello');
$(this).parents(".ex").hide("slow");
});
$("Button").click(function(){
alert('hahaha');
$(this).parents(".ex").hide();
});