Created
December 9, 2011 15:23
-
-
Save rmdort/1451958 to your computer and use it in GitHub Desktop.
slide-up-down-tabs
This file contains hidden or 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
| // tabbed areas, global | |
| $(".tabs ul li a").click(function(event) { | |
| event.preventDefault(); | |
| $(this).addClass('pager-active'); | |
| $(".tabs ul li a").not(this).removeClass('pager-active'); | |
| var scope = $(this).attr('rel'); | |
| var target = $(scope); | |
| $(target).slideDown(); | |
| $('.tabsContent li.handle').not(target).slideUp().not(target).removeClass('tabContentActive'); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment