Jquery change togle switcher CSS class on clicking a button

Solution:

Try

$('#changeButton').on('click', function() {
    $('.premium-content').toggleClass('premium-content-toggle-switch-active');
});

The listener should be attached to the ‘#changeButton’ id selector; in the handler, you select the ‘.premium-content’ class elements and toggle their …-switch-active class.