Created
August 3, 2011 08:54
-
-
Save iboard/1122207 to your computer and use it in GitHub Desktop.
iterate divs in coffescript
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
cnt_tabs = $(".side-tab").length | |
for idx in [0..(cnt_tabs-1)] | |
tab = $(".side-tab:nth-child(#{idx})") | |
unless tab.attr('id') == "side-tab-#{except.attr('id')}" | |
tab.hide() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment