Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
PHP code for the above question is required
Posted
Comments
Ishpreet Kaur 26-Nov-14 11:59am    
Whether you are using any database (like mysql or postgres) or not in your project?
If yes, then it will be easy to do this.
Take one table for second dropdown in database, store three columns in database, one column will store value of select option and other column will store text of select option and third column will store value of first dropdown. If you select any text from first dropdown, then second dropdown will be populated with entries where third column value match with the value of first dropdown selected.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900