GS Chained Selects provides you with a custom JavaScript class that automatically creates chained selects based on the options entered.
To generate the selects you can choose between using your custom created object or by accessing via AJAX a server resource that returns a custom formatted JSON .