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

2 Answers

Cameron Childres
Cameron Childres
Treehouse Moderator 11,680 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.