Skip to content

Instantly share code, notes, and snippets.

@rmdort
Created December 9, 2011 15:23
Show Gist options
  • Select an option

  • Save rmdort/1451958 to your computer and use it in GitHub Desktop.

Select an option

Save rmdort/1451958 to your computer and use it in GitHub Desktop.
slide-up-down-tabs
// 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