Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dependent lists

Status
Not open for further replies.

jass1220

Programmer
May 20, 2003
88
AE
hi ,,

I have two lists, when I select an item from the first
list, the second list will be populated based on the
selected item.

in the first list there are cities when the user selects a city the schools in that city should be added to the second list from the database ... the first list not from the database only the second..

i've done some codes and its working but it doesn't work when teh form first loaded it workd only after submitting the form to itself ..

i won't it to be changed whenever the user changes the selection ..


is there any way that this can be done ??
 
Hi,

In your first select tag call the function onChange=&quot;yourFunction()&quot; which load the send select tag insted of onLoad() of <from> or <body>

Cheers,
Venu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top