Skip to content

Instantly share code, notes, and snippets.

@kikegarcia
Last active December 19, 2015 13:59
Show Gist options
  • Save kikegarcia/5966480 to your computer and use it in GitHub Desktop.
Save kikegarcia/5966480 to your computer and use it in GitHub Desktop.
Hide things if a span is empty
<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