$('.toggle-button').on('click', function() {
$('body').addClass('changeCursor');
});
$('.toggle-button.toggle-active').on('click', function() {
$('body').removeClass('changeCursor');
});
Hello everyone, I am looking to toggle a class on the body element and remove it when clicking again. The code snippet above is what I currently have, but it's not working as expected. Any help or suggestions would be greatly appreciated. Thanks! :)