PDA

View Full Version : chained select boxes that populate a text box



l74Rl3Y
03-13-2010, 11:16 PM
What I am trying to accomplish is a form that contains two select menus, Menu A and Menu B, as well as a Text Box.

Menu A will contain a list of states, when a state is chosen I want Menu B to populate with a list of cities in that state. After a City is selected in Menu B i want the Text Box to populate with information pertaining to the city.

So far the only codes I have found were either to chain the two Menus together or to chain a Menu to a Text Box.

I could really use some help on this, even if you could point me towards a site with something like this already going on.

I would like to get it to get the information from an external XML document, but as of right now I just want it to work!

I thank you all in advance.

jscheuer1
03-14-2010, 04:47 AM
The author is no longer a regular here (he does check in from time to time) and his site is either down or moved, but this script should be able to do most if not all of what you want:

http://www.dynamicdrive.com/dynamicindex16/formdependency.htm

l74Rl3Y
03-14-2010, 10:18 PM
I do not see how this code ca help me populate a text box with information based off of he selections made. Also, the select menus I am working with will be pull down.

jscheuer1
03-15-2010, 01:17 AM
t s y istake hen.