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).fadeIn(800).siblings().hide();
// Change/remove current tab to active
jQuery(this).parent(‘li').addClass(‘active').siblings().removeClass(‘active');
e.preventDefault();
});
});
The post tabs test appeared first on Greenfields Outdoor Fitness.
Source link