Podrías probar algo como esto:
Código Javascript
:
Ver original$(document).ready(function(){
// When user clicks on tab, this code will be executed
$(".tabs li").click(function() {
// First remove class "active" from currently active tab
$(this).siblings().removeClass('active').each(function() {
// Hide all tab content
var current_tab = $(this).find("a").attr("href");
$(current_tab).hide();
});
// Now add class "active" to the selected/clicked tab
$(this).addClass("active");
// Here we get the href value of the selected tab
var selected_tab = $(this).find("a").attr("href");
// Show the selected tab content
$(selected_tab).fadeIn();
// At the end, we add return false so that the click on the link is not executed
return false;
});
});