I have an HTML page that includes 3 drop-down boxes. Whenever I make a selection in one of the boxes, the chosen value is sent to the server, and the server should return the values for the other 2 drop-down boxes. How can I dynamically populate the other 2 drop-down boxes based on the selected value of the first one? All values are retrieved from the server side.
For example: dd1, dd2, dd3 where dd = drop down box
If I change the value in dd1, it is sent to the server, which then returns the values for dd2 and dd3. How do I populate dd2 and dd3 accordingly? In what format should the server reply?
Please note: I am using plain Ajax and do not intend to use jQuery or other frameworks. I am seeking a simple Ajax solution.