Hi coders,
Happy New Year!!!
I’m doing always my todoList project and I have other problem:
I want to “clear” my count, when a task is deleted, but I don’t know how I can do.
I try this solution , but didn’t work.
//Reset task
var reset = function() {
a = 0;
document.getElementById('Value').innerHTML = 0;
}
var resetButton = document.querySelector("#reset");
resetButton.addEventListener("click", function() {
reset();
})
This is full project link:
https://codepen.io/camilco/pen/OJPLywM?editors=1010