dereuromark has some nice examples:
http://sandbox.dereuromark.de/sandbox/ajax-examples/chained-dropdowns
its work like this: $("#combobox1").change() do a ajax request passing the selected value for Controller function that do database search and return a json/html data to fill the combobox2
for code search in github: