Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Client-side dynamic drop down menu?

Does anyone have or know where i can find a working javascript/VBscript that will allow me to have a drop down menu that loads its values based on the selection in another drop down menu which in turn gets its value from another dropdown menu? Just as an example to explain my question...

Lets say I wanted a menu that listed manufacturer:

Ford, GM, Chrystler.

then based on that model:

F150, F250, F350, Superduty, Mustang, etc...

then based on that engine type:

4.2V6, 5.4V8, 5.8V8, 6.2D, etc...

How do I do that? I've made a javascript that seemed to work, then I put it in a form and it doesn't work anymore. I can't figure out why, or how to fix it yet. I'm getting pretty familar with HTML, Javascript, HTML DOM. I don't have access at this time to PHP, ASP, MySQL... I've avoided databases by using arrays. Thank you.

2 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    I think you want a chain menu. There's one here:

    http://www.dynamicdrive.com/dynamicindex16/chained...

    I know there are other ones from that same website, look around.

    Hope this helps.

    James D

    zzaazz.com

  • Anonymous
    4 years ago

    Write the menu in HTML. CSS, Javascript, yet it somewhat is, utilising dummy categories. Make it artwork. Then use AJAX to create the comparable code, yet with categories you're getting from the database. (in case you're no longer getting categories from a database, there is not any reason to apply AJAX to create the menu.)

Still have questions? Get your answers by asking now.