blob: 1d178d9e4813584f8cdb25b9dd0e3b6e973f8ad1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
jQuery(document).ready(function() {
jQuery('.tabs .tab-links a').on('click', function(e) {
var currentAttrValue = jQuery(this).attr('href');
// Show/Hide Tabs
jQuery('.tabs ' + currentAttrValue).show().siblings().hide();
// Change/remove current tab to active
jQuery(this).parent('li').addClass('active').siblings().removeClass('active');
e.preventDefault();
});
});
|