Kevin Powell - CommunityKP-C
Kevin Powell - Community11mo ago
18 replies
Myra

To-do list

Hi there! I'm trying to create a todolist using js.
• I have added the data to local storage
• Get the data from local storage and show it on the ui
• Now in trying to create a function to delete the data from the ui and from the local storage but it deletes the whole data from local storage
function deleteItem(para,deletebtn){
    para.remove();
    deletebtn.remove();
    localStorage.removeItem("userData");
  }

• I'd appreciate if you help me to resolve this issue and other tips

Github repo:
https://github.com/Myragull/Todolist

Live at:
https://myragull.github.io/Todolist/
GitHub
A simple todolist project built with html ,css and javascript - Myragull/Todolist
GitHub - Myragull/Todolist: A simple todolist project built with ht...
Was this page helpful?