You have three main options:
- Old school CGI - use an 'update' button to trigger a submit (or do that with a javascript on select handler) to refresh the dependent list
- Do it all in javascript - send all the possible values for the dependent list and select an appropriate set client side in the on select handler
- Use Ajax to just update the dependent list from the server
True laziness is hard work