Suppose you have two drop down selects that are related. The contents
of both come from a database.You want the contents of the second one
to be dependent on the selection made in the first one, but don’t want
the user to have to hit SUBMIT to make the contents populate. For
example, say the goal is to implement a role based access framework
and the first drop down is the controllers available for a given
right. Once the user selects a controller, you want the next drop
down populated with only the actions available for that controller.
I suppose that this is an AJAX thing, but wasn’t sure how to do it.
I should warn you to replace the CONTENT of the second one, not the
actual
select box itself. I tried doing this in an app of mine and found out it
wasn’t putting it through in the submit.