Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Dropdown Boxes


Message #1 by "Tom Nocer" <chevelleneeded@y...> on Sat, 25 Jan 2003 17:45:28
I would like to have 2 dropdown boxes on a page so that the user can pick 
an item from the first dropdown box and then the second one would refresh 
a list of items that corresponds. 

EX: 1st box you choose 'Colors' 2nd box displays 'red, blue, green, ect'.


<SELECT NAME=choose SIZE=1>
<OPTION VALUE=0 SELECTED>Pick One
<OPTION VALUE=1>Colors
<OPTION VALUE=2>Numbers
<OPTION VALUE=3>People
</SELECTED>


<SELECT NAME=colors SIZE=1>
<OPTION VALUE=0 SELECTED>red
<OPTION VALUE=1>blue
<OPTION VALUE=2>green
</SELECTED>

Maybe its just me but I cant seem to get the 2nd box to be the right one 
the user chose from the first???  And then when they pick from the second 
box I cant get it to link to that page?  Please Help.

Thanks Tom

  Return to Index