Navigation Menu

What's New?
Alphabetical Listing
Site Contents


Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner














Internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

General

Automatically adjusts the values in the selection box depending on the item selected in the drop down menu. Awesome!



Notes

  • Created by: Jerome Caron
  • Posted: March 23, 2001

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: autoDropDown.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

18. From: Kevin
07/30/2008 14:22:01

I'm pretty sure this would help me If I got it to work. :]
I'm a some-what beginner at web-design and my client wants a auto-drop down menu.
But I have no idea how to even get this to work :[

It's not visable at all.
If you can offer help that would be AWESOME.

19. From: Lee (Admin)
10/31/2008 15:05:31

Your question is beyond the scope of these comments. You will need to post it over on the JavaScript forum. Thanks!

16. From: deean
Help
06/02/2008 14:21:50

How if I want to insert the values without insert them one by one inside the code?
I mean, just get them from database?
Thank You

17. From: Lee (Admin)
10/31/2008 14:30:40

Your question is beyond the scope of these comments. You will need to post it over on the JavaScript forum. Thanks!

14. From: Gene
Not sure how to embed code
02/29/2008 10:19:14

The menu bar looks great, perfect for what i need, however, cannot get the following code to work on my web page.

Thanks

Gene

15. From: Lee (Admin)
10/31/2008 13:58:00

Your question is beyond the scope of these comments. You will need to post it over on the JavaScript forum. Thanks!

12. From: Boris
Numbers After Names
01/19/2008 21:23:45

Thanks a lot for your contribution!
What is the significance of the numbers after each athlete's name? Are they random? I was trying to change the Team/Athlete format to a country/province format, but when I copied the numbers again, the script stopped working,

Thanks for your input

13. From: Lee Underwood (Admin)
01/29/2008 13:08:28

To tell you the truth, I'm not sure what the numbers are for. I removed them and it worked fine, i.e.,

new Array("Marian Hossa"),

There is a script already written for what you want to do.

10. From: WzCocoon
is it possible to adda 3rd options?
12/20/2007 02:10:03

I love you code thanks,

I would like to know if it is possible to add a 3rd option to select from based on the second select?

is it possible to add a 3rd options?

11. From: Lee Underwood (Admin)
01/29/2008 11:53:19

Sure, but you would need to rewrite the script. Due to the limitations of these comments, you will need to submit your question to the JavaScript Forum for further help.

next comments...

Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.