JSFiddle - React, Tailwind, and code Playground
by dexterity
HTML
<div id="div" style="display: none"></div>
<br>
Like @officialmcoves on facebook and other social media for more free codes!
<br><br><button class="try">Try now</button>
CSS
.try {
cursor: pointer;
}
JavaScript
$(document).on('click','.try',function() {
var style = $('#div');
if (style.css("display") == "none") {
alert("display not available");
}
});