Created
October 25, 2016 16:53
-
-
Save faisalhmohd/83d8f258f919194c36624f302cb046b4 to your computer and use it in GitHub Desktop.
Hide child div's dynamically
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
var hideDivs = [2, 3]; // Enter the divs to be hidden | |
$( ".div" ).each(function() { | |
for(var i = 0; i < hideDivs.length; i++){ | |
$(this).find('a:eq(' + hideDivs[i] + ')').hide(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment