JSFiddle - React, Tailwind, and code Playground

by hescano

HTML

<div id="d">Hello, World!</div>
<input type="button" value="Try Me" />
<input type="button" value="Try Me" />
<input type="button" value="Try Me" />
<input type="button" value="Try Me" />
<input type="button" value="Try Me" />
<input type="button" value="Try Me" />
<input type="button" value="Try Me" />
<input type="button" value="Try Me" />

JavaScript

$(function(){
    $("input[type='button']").click(function()
    {
        $("#d").empty()
    });
});