New answers tagged

0

I just solved this. In case it helps anyone later on, I simply doubled-up on the following function: function toggleHandler(toggle) { toggle.addEventListener( "click", function(e) { e.preventDefault(); (this.classList.contains("is-active") === true) ? this.classList.remove("is-active") : this.classList.add("is-active"); }); ...



Top 50 recent answers are included