[ad_1]
I have two select elements. The options for the first one are loaded via SQL when the page loads. The options for the second one should be loaded after an option from the first one has been picked, and depending on wich one was picked.
For example, the options for the first select should be "food" and "drink". For the second select, the options should be "carrots", "potatoes" and "peas" if the selected option on the first select is "food"; or "tea", "coffee" and "water" if the selected option on the first select is "drink".
Thanks.
[ad_2]
لینک منبع