The elements I selected with querySelectorAll come 2 times in the for loop
https://jsfiddle.net/df1Lhqb7/ I am trying to write a todo application and the completed part button works normally, but when I add a new element, it works as if the button is clicked 2 times. I am writing a todo app and by default it works when I press complete on the items in the list. But… Read More The elements I selected with querySelectorAll come 2 times in the for loop