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 Interactive Web Pages with JavaScript Traversing and Manipulating the DOM with JavaScript Adding Multiple Event Listeners

Mark Miller
Mark Miller
45,831 Points

I can't see how to do this.

I am not understanding this.

2 Answers

Mark Miller
Mark Miller
45,831 Points

Whoa, thanks! I did not even realize it says "change" in quotations in the instructions! I guess I need to read more carefully. I did not realize that when it says "change" it means exactly that word. Thanks for the help.

Dale Severude
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,349 Points

For this challenge an addEventListener needs to be added to both lines. Here is the syntax for one of them:

navigationSelect.addEventListener("change", navigateToValue);
Mark Miller
Mark Miller
45,831 Points

How did you know that the event is specifically called "change"? It could have been anything! Would another word fit suitably representing the visitor's selection of an option from the select menu? What if they change it from "change"? Will we know about that? Can you say where the documentation says "change" for this event?