I am searching on Google and on stackoverflow for the error: too much recursion that i have with this script. But i don't found a solution. I try with event.stopPropagation(); but don't work for me in this script. URL/page where script is running: https://webdesignrebry.be/step/verloop/ I am using wordpress. On the page you have a href link and links in submenu that switch to the divi tabs in the left side. Can anybody help me? Thanks!
(function($){
$('.voorbereiding').on('click', function(event){
$('.ds-tab-cube .et_pb_tab_0 a').click();
});
$('.ontwikkeling').on('click', function(event){
$('.ds-tab-cube .et_pb_tab_1 a').click();
});
$('.peiling').on('click', function(event){
$('.ds-tab-cube .et_pb_tab_2 a').click();
});
})(jQuery);
(function($){
$('.valorisatie').on('click', function(event){
$('.ds-tab-cube .et_pb_tab_3 a').click();
});
})(jQuery);