Click to See Complete Forum and Search --> : linked drop down boxes


v1c10u5
10-12-2003, 03:16 AM
Okay
I have two drop-down boxes (alpha and beta)
I want to make it so when you select something from alpha, the choices change to those pre-setted

Example:

Normal:
Alpha
A (Selected)
B
C
Beta
Hap
Foo
Coo

Select B (from Alpha)
Beta:
Doo
Boo
moo

Select C (from Alpha)
Beta:
Boo
Goo
Soo

Do you understand my question?
I want Beta to update without reloading the entire page

Thanks a lot!!!

lillu
10-18-2003, 06:26 AM
Put in google: javascript dynamic listboxes. You'll be amazed by the tons of hits that show up.

Here's a simple example to start with.

http://www.tneoh.zoneit.com/javascript/dynalistbox.html

danjam
06-20-2006, 08:57 AM
Here's a modular, customizable script for linked select boxes, from WebOnWebOff.com (http://www.WebOnWebOff.com).

You can specify what options to display at the start, or options to display when no options exist for the selected value.

dynamic select boxes (http://www.webonweboff.com/widgets/js/linked_selection.aspx)

There's also an Ajax version, for use when you data set is very large:
Ajax dynamic select boxes (http://www.webonweboff.com/widgets/ajax/ajax_linked_selection.aspx)

Hope this helps...