My checkbox hides all invitees, instead of only those who haven't responded yet
Here is a link to my code. Not sure what I'm doing wrong here.
Thanks for the help!
Cameron ChildresTreehouse Moderator 11,680 Points
Here's where the issue is:
// Line 20: if(li.className === 'responded') // Line 70: listItem.className = 'Responded';
It's a case of mismatched capitalization. When the 'confirmed' box is checked it adds the class 'Responded' but your filter checkbox looks for the class 'responded'. If you change line 70 to 'responded' so they match exactly then your code should behave as expected.
I hope this helps! Let me know if you have any questions.