-
-
Save carbone/83e5bba294095ca545d054d1ca4c3600 to your computer and use it in GitHub Desktop.
Add this to the Assets folder.
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
// See https://customfields.zendesk.com/hc/en-us/articles/360000622771 | |
jQuery(document).ready(function(){ | |
jQuery('ul.tabs li').click(function(){ | |
var tab_id = $(this).attr('data-tab'); | |
jQuery('ul.tabs li').removeClass('current'); | |
jQuery('.tab-content').removeClass('current'); | |
jQuery(this).addClass('current'); | |
jQuery("#"+tab_id).addClass('current'); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment