I am looking to implement 3 dropdown lists that work together:
Select: State
Select City
Select: Restaurant
When a selection is made in the first dropdown list, it should update the "Select City" list. Similarly, when a selection is made in the second dropdown list, it should update the last one.
I am considering 3 different approaches:
- Using Javascript to populate all possible values and using
form onchange
to trigger the update method. - Populating the dropdowns from a MySQL database.
- A combination of both - populating the first 2 with JavaScript and the last one from a database.
Now I am interested in comparing the performance and pros/cons of each approach for hosting, VPS, and PAAS solutions.