Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialArielle Anthony
Full Stack JavaScript Techdegree Student 7,081 PointsMy 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!
2 Answers
Cameron Childres
11,820 PointsHi Arielle,
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.
Arielle Anthony
Full Stack JavaScript Techdegree Student 7,081 PointsOh that's simple. Thank you!!