Jquery – How to toggle data-theme value on click
So I have set up a light and dark theme using variables in css and I want my toggle to change the data theme from "light" to "dark" - how do I do this? JS $(document).ready("#toggle_checkbox").click(function() { $('body').attr('data-theme', $('body').attr('data-theme') ==…