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 trial

JavaScript DOM Scripting By Example Editing and Filtering Names Filter Invitees Who Have Not Responded

My checkbox hides all invitees, instead of only those who haven't responded yet

https://w.trhou.se/l5o45mnu4q

Here is a link to my code. Not sure what I'm doing wrong here.

Thanks for the help!

2 Answers

Cameron Childres
Cameron Childres
11,820 Points

Hi 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.

Oh that's simple. Thank you!!