1. Home
  2. Computing & Technology
  3. JavaScript

Ordered Dropdowns

3. Obtain the Script

clr gif
Join the Discussion

Questions? Comments?

More of this Feature

Introduction Sample Add to Your Page

To be able to get the dropdown lists to delete the appropriate entries from the various dropdowns you first need to select the code from the text box below (there is a highlight all button beneath it to make this easier) and copy it into a file called orddrop.js.

You then link this code into the head of your web page using the following code:

<script src="orddrop.js" type="text/javascript">
</script>

The one Javascript function performs all of the needed processing to update all of the lists regardless of how many lists there are and regardless of how many entries they contain.

Now all that remains is to add the drop down selection lists to your page to set up a multiple ordered selection form.

Introduction | Sample Page | Obtain the Script | Add to Your Page
Explore JavaScript
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2010 About.com, a part of The New York Times Company.

All rights reserved.