Forums
This topic is locked
dynamic drop down
Posted 22 Sep 2002 17:18:54
1
has voted
22 Sep 2002 17:18:54 paul sulit posted:
how do i populate a second drop down menu based on the what the user has chosen on the first drop down menu?i have two tables wherein one of the column in the one of the tables is a foreign key to the other. pls advise. thanks.
Replies
Replied 23 Sep 2002 14:05:51
23 Sep 2002 14:05:51 Aurel Sorin Cirstoiu replied:
Hello,
I say you add a blank option for the first dropdown:
<option value=""></option>
You do this because the user will have to choose a value from the list. Here you add a function for onChange event by calling the same page with a parameter. The second dropdown will display all values in a recodset only if the parameter is present in URL.
-----------------------
Cirstoiu Aurel Sorin
InterAKT Support
www.interakt.ro
-----------------------
I say you add a blank option for the first dropdown:
<option value=""></option>
You do this because the user will have to choose a value from the list. Here you add a function for onChange event by calling the same page with a parameter. The second dropdown will display all values in a recodset only if the parameter is present in URL.
-----------------------
Cirstoiu Aurel Sorin
InterAKT Support
www.interakt.ro
-----------------------