I got two drop down in a MVC Razor-View:
@Html.DropDownListFor(x => x.SelectedPrefix, Model.GetAssignablePrefixes() , new { @id = "prefixDropDown" })
@Html.DropDownListFor(x => x.SelectedSuffix, Model.GetAssignableSuffixes(Model.SelectedPrefix) , new { @id = "suffixDropDown" })
Selection of the first dropdown should change the content of the second dropdown depending of the value selected in the first dropdown. (Therefor the method GetAssignableSuffixes(Model.SelectedPrefix) is called)
As there are quite complex calculations, I do not want put all the logic into a JavaScript-method
I've found some "quite" simular questions here at SO, but not with DropDownListFor. Is there an approach fior that?