skip to Main Content

Adding checked class using javascript

I tried adding checked class to a to do list project using event listeners. But the event listeners are not attaching to every checkbox class. Here's the code export default function (){ const checkedElements = document.querySelectorAll(".checkbox"); checkedElements.forEach(element => { element.addEventListener('click',…

VIEW QUESTION
Back To Top
Search