I am trying to add in a very simple method of switching between 2 stylesheets.
I can get the stylesheet to fire on click but not able to toggle it back to its origin
You can try something like this :
let test = true; $('#css_toggle').click(function() { if(test) { $('link.sty').attr("href","style.css"); test = false; } else { $('link.sty').attr("href","style1.css"); test = true; } });
Text