Children

jQuery(document).ready(function($){ //get the hash tag //hash exist setTimeout(function(){ var current = window.location.href; var current = current.split('#tab'); if(current.length>1) { $('.elementor-tab-title').removeClass('elementor-active'); $('.elementor-tab-title[data-tab="'+current[1]+'"]').addClass('elementor-active'); $('.elementor-tab-content').hide(); $('.elementor-tab-content[data-tab="'+current[1]+'"]').show(); } }, 200); $('.elementor-tab-title[data-tab]').click(function(){ var current_location = window.location.href; current_location = current_location.split('#'); window.location = current_location[0]+'#tab'+$(this).attr('data-tab'); }) })