JSFiddle - React, Tailwind, and code Playground
by aflynt
HTML
<!-- Check if element is display none -->
<span id="test">Test</span>
<div id="outer-test2">
<span id="test2">Test 2</span>
</div>
CSS
#test {
display:none;
}
#test2 {
display:block;
}
#outer-test2 {
border-left:1px solid black;
}
JavaScript
if($('#test').css('display') == 'none')
{
// alert("test is hidden");
$("#outer-test2").css("border","none");
}