Site icon Hip-Hop Website Design and Development

Woocommerce – open single product tab on button click [closed]

On my single product page I have button where I want to open default product tab named "description" on click on specific button with id="cely-popis". This should perform only when another tab is active than "decription".

$("#cely-popis").click(function() {
    $('html, body').animate({
        scrollTop: $("#tab-description").offset().top - 64
    }, 2000);

    $('.nav-link[href=tab-description]').trigger('click');
});