JSFiddle - React, Tailwind, and code Playground

by rjha999

HTML

<div id="content">
     <h1>Main title</h1>
     <h2>Section title</h2>
     <p>Some content...</p>
     <h2>Section title</h2>
     <p>More content...</p>
</div>
<button>Click</button>

JavaScript

$('h1, h2').hide();

$("button").click(function(){
     var headers =$('h1,h2');
     headers.show();
});