Answer the question
In order to leave comments, you need to log in
How to apply class?
I'm so sorry, I did that.
window.addEventListener('DOMContentLoaded', function(){
document.querySelector("#input-checkbox").addEventListener('change', function(){
document.querySelector('#color-label-editions').classList.toggle('active-label-color')
})
});
window.addEventListener('DOMContentLoaded', function(){
document.querySelectorAll("div.input-checkbox").addEventListener('change', function(){
document.querySelectorAll('div.color-label-editions').classList.toggle('active-label-color')
})
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question