how to make a todo list delete button work in javascript
Hello. I’m building a todo list app and need the delete button to delete each list everytime the delete button is clicked, but the problem is the delete function doesn’t even register the button clicked. I’ve done everything possible but nothing is working.
The code is listed below.
The add list function is the “addBtn” function.
The delete function is the “iconBtn” function.
I’ve tried putting the iconBtn function inside and outside the addBtn function but it still doesnt log the “button clicked” to the console like I specified
Please help. I added the codepen below.
CODE:
https://codepen.io/Godswill-Obi-ndaji/pen/oNJYwmQ
The code is listed below.
The add list function is the “addBtn” function.
The delete function is the “iconBtn” function.
I’ve tried putting the iconBtn function inside and outside the addBtn function but it still doesnt log the “button clicked” to the console like I specified
Please help. I added the codepen below.
CODE:
https://codepen.io/Godswill-Obi-ndaji/pen/oNJYwmQ

