-
-
Save micahgodbolt/5052594 to your computer and use it in GitHub Desktop.
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
$(document).ready(function() { | |
// Make tabs work | |
$('.tabs-wrapper .tab-option').hide(); | |
$('.tabs-wrapper .tab-option:first').show(); | |
$('.tabs-wrapper li:first').addClass('active'); | |
$('.tabs-wrapper .tabs li a').click(function(){ | |
$(this).parent().siblings().removeClass('active'); | |
$(this).parent().addClass('active'); | |
var currentTab = $(this).attr('href'); | |
$(this).closest('.tabs-wrapper').find('.tabs-option').hide(); | |
$(currentTab).show(); | |
return false; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment