Here’s the full Codepen. You enter a habit and a div is created. You then select the button for each day to toggle through and mark the habit as completed(yes), not completed(no), skipped, or leave blank.
Issue: The toggle classes are not working on some of the additionally added habits/divs. I can’t figure out a pattern on why some work and some don’t. I’m thinking it has to do with the fact that the divs are dynamically added. Any help would be greatly appreciated! Ideally in either JS or JQuery please.