Skip to content
Advertisement

Uncaught TypeError: Cannot read property of a todolist

Uncaught TypeError: Cannot read property ‘contains’ of undefined

Uncaught TypeError: Cannot set property ‘display’ of undefined

I am trying to loop through todoList and get the child element. Where I am wrong? The child element is the list item. The list items are dynamically added on adding a todo.

JavaScript
JavaScript
JavaScript

Advertisement

Answer

Quite a bit of stuff to rewrite

I added the completed and delete functionality

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement