JSFiddle - React, Tailwind, and code Playground
by Ronny
CSS
#targetTest {display: none;}
#targetTest:target {display: block; height: 0;}
JavaScript
var testTarget = function(){
var targetTest = $('<div id="targetTest">hi</div>');
$(document.body).append(targetTest);
window.location = '#targetTest';
var result = $('#targetTest').css('display') == 'block';
alert(result);
}();