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 .done class 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!)