Exercise: DOM Events
Using the Shopping List files from the previous videos update the shopping list app to do the following:
- If you click on the list item, it toggles the
.doneclass on and off.
- Add buttons next to each list item to delete the item when clicked on its corresponding delete button.
- BONUS: When adding a new list item, it automatically adds the delete button next to it (hint: be sure to check if new items are clickable too!)
Please note that:
PS - if you have any questions, reach out to our community in the #js or #helpme channel on Discord (Lecture 2 provides the link if you have not yet joined)!