Last active
December 19, 2015 13:59
-
-
Save kikegarcia/5966480 to your computer and use it in GitHub Desktop.
Hide things if a span is empty
This file contains 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> | |
$(document).ready(function(){ | |
if(!$('.testimonios > span.efecto').html().trim()) { | |
$('h2.titular').hide(); | |
$('div.testimonios').hide(); | |
$('.testimonios > span.efecto').hide(); | |
} | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment