Created
September 15, 2010 21:25
-
-
Save thefrosty/581519 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
// Setting the tabs in the sidebar hide and show, setting the current tab | |
jQuery('.tab-content').hide(); | |
jQuery('.t1').show(); | |
jQuery('ul.tabs li.t1 a').addClass('tab-current'); | |
jQuery('ul li a').css('cursor','pointer'); | |
jQuery('#tab ul.tabs li.t1 a').click( | |
function() { | |
jQuery('#tab div.tab-content').hide(); | |
jQuery('ul.tabs li a').removeClass('tab-current'); | |
jQuery('#tab').find('div.t1').show(); | |
jQuery(this).addClass('tab-current'); | |
} | |
); | |
jQuery('#tab ul.tabs li.t2 a').click( | |
function() { | |
jQuery('#tab div.tab-content').hide(); | |
jQuery('ul.tabs li a').removeClass('tab-current'); | |
jQuery('#tab').find('div.t2').show(); | |
jQuery(this).addClass('tab-current'); | |
} | |
); | |
jQuery('#tab ul.tabs li.t3 a').click( | |
function() { | |
jQuery('#tab div.tab-content').hide(); | |
jQuery('ul.tabs li a').removeClass('tab-current'); | |
jQuery('#tab').find('div.t3').show(); | |
jQuery(this).addClass('tab-current'); | |
} | |
); | |
jQuery('#tab ul.tabs li.t4 a').click( | |
function() { | |
jQuery('#tab div.tab-content').hide(); | |
jQuery('ul.tabs li a').removeClass('tab-current'); | |
jQuery('#tab').find('div.t4').show(); | |
jQuery(this).addClass('tab-current'); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found my solution: