jQuery(document).ready(function($){
function clean(str){ return $.trim(str).replace(/\s+/g,”); }
$(‘.tabcontent’).hide();
$(‘#’+clean($(‘.tablinks.active’).text())).show();
$(‘.tablinks’).on(‘click’,function(){
$(‘.tablinks’).removeClass(‘active’);
$(this).addClass(‘active’);
$(‘.tabcontent’).hide();
$(‘#’+clean($(this).text())).show();
});
});