Change tab class and display content

PHOTO EMBED

Thu May 19 2022 07:59:33 GMT+0000 (Coordinated Universal Time)

Saved by @ali_naqvi #js #javascript #jquery

    $('.tabs-nav a').on('click', function (event) {
        event.preventDefault();
        $('.tabs-nav li').removeClass('tab-active');
        $(this).parent().addClass('tab-active');
        $('.tabs-stage section').hide();
        $($(this).attr('href')).show();

        if ($('#tab-1').css('display') == 'none') {
            $('.box-filters').hide();
        } else {
            $('.box-filters').show();
        }
    });
content_copyCOPY