JSFiddle - React, Tailwind, and code Playground

by deepak sisodiya

HTML

<button>Hide</button>
<p>This is a paragraph with little content.</p>
<p>This is another small paragraph.</p>

JavaScript

/* jquery hide with speed parameter
The optional speed parameter can take the following values: "slow", "fast", or milliseconds.
*/

$("button").click(function () {
    $("p").hide(1000);
});