Edit function in Grocery List Application

Hi there, I have been working on a grocery list edit items functions but the function’s logic does not work for me. I wanna edit each item I added on a list. Can someone please help… GitHub - naima-shk/Grocery-List-App
Here’ the live link Document

@DanCouper Have a look, please…

You are not using the edit function and removeAdjacentElement isn’t part of the API. One simple option would be to use remove on the event.target in the handler function.


BTW, for this kind of app (i.e. a to-do list) I would really suggest taking a data-driven approach. Create an array of objects for the state. Have the app logic work with that data structure. Then make the DOM reflect the data structure as the app view state.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.