Skip to content

Instantly share code, notes, and snippets.

@trosage
Created July 5, 2012 20:29
Show Gist options
  • Save trosage/3056248 to your computer and use it in GitHub Desktop.
Save trosage/3056248 to your computer and use it in GitHub Desktop.
$("#topic-tabs a").on("click", function(){
$("#topic-tabs a").removeClass("selected");
$(this).addClass("selected");
});
$(".topic-tab-all").on("click", function(){
$(".topic-group").show();
});
$(".topic-tab-design").on("click", function(){
$(".topic-group").hide();
$(".topic-group-1").show();
});
$(".topic-tab-dev").on("click", function(){
$(".topic-group").hide();
$(".topic-group-2").show();
});
$(".topic-tab-ios").on("click", function(){
$(".topic-group").hide();
$(".topic-group-3").show();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment