[Solved] I’m trying to do a todolist, but it doesn’t work [closed]


The problem is that the code at the beginning of your JavaScript, (the one that sets up the strikethrough capabilities) never gets called.

To fix this you have to:

  1. Place that code inside of a function, like the code after it, and

  2. Add that function to the body‘s onclick attribute to make it be called when the page is loaded.

See this JSFiddle. I think it achieves what you were after.

1

solved I’m trying to do a todolist, but it doesn’t work [closed]