JSFiddle - React, Tailwind, and code Playground

by cwhong

HTML

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("#Welcome").click(function(){
    $("p").hide();
    $(".important").show();
  });
  $("#Home").click(function(){
    $("p").show();
    $(".important").hide();
  });
});
</script>
</head>
<body>

<button id="Welcome">Welcome</button>
<button id="Home">Home</button>
<p>If you click on the Welcome button, I will disappear.</p>
<p class="important"> hello welcome to this</p>

</body>
</html>