Last active
December 23, 2019 21:13
-
-
Save vaskaloidis/ccf5fb62ab187033cd67a427cfdf542f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.onload = function() { | |
var target = document.getElementById('revealthis'); | |
if( $('#yourtarget').is(':empty') ) { | |
target.style.display = 'block'; | |
} else { | |
target.style.display = 'none'; | |
} | |
}; | |
</script> | |
<div id="yourtarget"> | |
This is what your checking | |
</div> | |
<div id="revealthis" style="display:none"> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment