Created
July 11, 2011 21:29
-
-
Save juarezpaf/1076837 to your computer and use it in GitHub Desktop.
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
jQuery(function($) { | |
/*Simple Tabs*/ | |
//When page loads... | |
$(".tab_container > div").hide(); | |
$("ul.tabs li:first").addClass("selected").show(); | |
$(".tab_container > div:first").show(); | |
//On Click Event | |
$("ul.tabs li").click(function() { | |
$("ul.tabs li").removeClass("selected"); | |
$(this).addClass("selected"); | |
$(".tab_container > div").hide(); | |
var activeTab = $(this).find("a").attr("href"); | |
$(activeTab).fadeIn(); | |
return false; | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment