To-Do list delete functionality

I am trying to add a functionality in my to-do list in which if i double click on a task it gets deleted but i am not able to do it. Please suggest what changes should be made to my code… Link : https://github.com/shubham-joshi1999/To-Do-List/tree/master/todo_list

Code incomplete on github. Also, is there any error shown in browser console or terminal window?

Sir , i have updated the code on github pls check todolist.js in public folder.

what i want is that when i click on remove button that particular list item should get deleted.

Follow this link. This is exactly what you want.

I did the same thing as suggested in the post but as soon as i add a new task, deleted task also appears along with the new task.

That’s because you don’t remove the todo from your list in your server. In the delete function, send a request to delete the respective item from list.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.