js question
i am making to do app, and i cant figure out how to check if "goal" is confirmed.
https://codepen.io/etrbbr/pen/LEPoMQZ
i have one idea but i am not sure that is correct.
check with foreach listContainer and if it has "confirmed" class in LI i just add+1 every time to my counter.
5 Replies
document.querySelectorAll('#list-container .checked').length
should do the trickoh fuck bro no way that was so easy
š
why doesnt the add button work ?
it did last night when I looked at it, so I think he's changed something. If you look in the console, you should see why it doesn't work
yeah i was playing with some values and i didnt save file