PDA

View Full Version : how to change a list box items depending upon value of another list box


mahvin
10-03-2002, 04:29 PM
I am very new to javascript, so please help ! I have 2 list boxes on my form. The first one has all US states and the second one should be populated with the couties in the state that was selected in the first list box.
All the info about counties in a state are in the database.

Is there a way to do that ?

Spudhead
10-03-2002, 04:38 PM
www.dynamicdrive.com - if that script isn't on there I'll eat my hat. If I had one.

Spudhead
10-03-2002, 04:51 PM
<munch, munch> I couldn't find it.

But I found one somewhere else (http://www.javascriptkit.com/script/script2/dcombotext.shtml)

requestcode
10-03-2002, 05:08 PM
You should be able to find some examples here:
http://javascriptkit.com/script/cutindex16.shtml