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

Unit 3 Project, Checking if a string contains a dateAndTime

I'm trying to figure out if the event string contains a date and time so I can filter the other ones out so that the user cant access events that have the same day and time. I dont know what the hell I am doing. I've tried multiple things and I still cant get it to work. I have the string in a variable and I have the spot where the date and time would be in the string in a variable. I want to loop through the checkboxes so when the user clicks one, it cant see if the other inputs contain that same date or not. if they do, then do filter them out and put a line through them. I dont know what to do next and the study guide is telling me to put the checkboxes in a loop which I am doing, but i dont know how to use the iteration and then the specific part of the string I need to filter what I need out. I really dont know where to begin with my loop and Im just stuck.

github file: https://github.com/joeEscob1023/interactiveForm/blob/master/js/app.js