I have an 2 HTML selects
something like this
<SELECT>
<OPTION>id 1
<OPTION>id 2
<OPTION>id 3
</SELECT>
Then there should be another <SELECT> that only has the options of what is selected by the first select.
For example if the user selects id 2, I want to query the database and make the 2nd select only be valid options for id = 2.
The 2nd select is dependant on what is chosen in 1st select. But 2nd select info will come from database.
How do I do this?
I am using PHP and jscript
Thanks
something like this
<SELECT>
<OPTION>id 1
<OPTION>id 2
<OPTION>id 3
</SELECT>
Then there should be another <SELECT> that only has the options of what is selected by the first select.
For example if the user selects id 2, I want to query the database and make the 2nd select only be valid options for id = 2.
The 2nd select is dependant on what is chosen in 1st select. But 2nd select info will come from database.
How do I do this?
I am using PHP and jscript
Thanks