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

Dependent Drop-Down Menu: How To?

I was wondering if you guys had a video that showed how to make a dependent drop-down menu. Sort of like "year, make, model" or "category, item, brand"

If not, can you please point me in the right direction?

1 Answer

Here, have a CodePen. It could use a few tweaks, but I think it's a good prototype. It's also CSS-only, so it works when JavaScript is turned off.

I'm actually looking for something a little different. If you go to http://www.autotrader.com/cars-for-sale/?expandAllOptions=true&Log=0 and select a make, it displays models depending on the make selection you choose. How can I make a similar menu like that?