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

This script provides a selection in a dropdown menu, determined by the user's previous selection. Easy to implement and customize. Could be used with other dynamic languages, such as JSP or ASP. The arrays could be created by information fetched from a database.


Genre:
Guitarist:

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: multiValueForm.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

3. From: Paul
Perfect
09/16/2008 18:13:11

Just what I was looking for, thank you.

1. From: Jay Rumsey
Great script
07/25/2008 13:09:44

Nice addition to scripting code

I modified it slightly to read in external JS file of data
to make it easier for upkeep without changing main code.

Good job!

2. From: Tom Hasert
07/18/2008 13:45:28

Thanks for the script. This is a great effect for many hierarchical choices: cities in states, divisions within companies.
I think you should handle the case where the user picks the "Select One" choice after having selected "Blues" or "Rock" previously. We typically clear the second select's choices. Or you might remove the "Select One" choice after "Blues" or "Rock" is chosen.


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.