JSFiddle - React, Tailwind, and code Playground
by aslancods
HTML
<div class="hideme" >
<a href="#" id="anchor" >click me</a>
</div>
<button id="show" >click to show hidden </button>
CSS
.hideme { display: none; }
.showme { display: block; }
JavaScript
$("#anchor").bind('click',function(e){
e.preventDefault();
alert('clicked');
});
$("#show").click(function(){
$('.hideme').removeClass('hideme').addClass('hideme');
});