Created
September 24, 2015 18:10
-
-
Save JacobLett/e2889aea6a2de653b822 to your computer and use it in GitHub Desktop.
Check to see if all child elements are display none - if so hide the parent container jQuery
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
// Checks to see if the competitions box is empty | |
if ( jQuery("#sidebar #primary .textwidget a").css("display") == "none" ) { | |
jQuery('#sidebar #primary').remove(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment