JSFiddle - React, Tailwind, and code Playground

by quanghoan

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<h2>This is dqhoan</h2>
<p class="myClass">This is the 1st sentence</p>
<p id="myId">This is the 2nd sentence</p>
<p> Scuti is growing up in Asia </p>

<button>Toggle 2nd sentence</button>

JavaScript

$(document).ready(function(){
    $("button").click(function(){
        $("#myId").hide();
    });
    $(this).click(function(){
        $(".myClass").show();
    });
    $("p").click(function(){
        $("p").toggle();
    });
});