Created
April 25, 2018 21:58
-
-
Save michaelbourne/418d8402d7426167816170a27c6b955a to your computer and use it in GitHub Desktop.
Create Your Own Custom Tabbed Content
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
(function($){ | |
$('#tabsection .x-container').on('click', '.x-column', function(){ | |
var textshow = $(this).index('#tabsection .x-column'); | |
$('#textsection .x-container').addClass('hidden'); | |
$('#textsection .x-container').eq(textshow).removeClass('hidden'); | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment