hi i have two dropdowns.
- MasterModule(country)
- Submodule(state)
My expectation is to First select Master category(country) than select(state)..
Currently it is showing all states when i selec any of country.
I have following razor code
<div class="editor-label">
@Html.LabelFor(model => model.MasterID, "Department")
</div>
<div class="editor-field">
@Html.DropDownList("MasterID", String.Empty)
@Html.ValidationMessageFor(model => model.MasterID)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.SubId, "Employee")
</div>
<div class="editor-field">
@Html.DropDownList("SubId", String.Empty)
@Html.ValidationMessageFor(model => model.SubId)
</div>
any help how to acheive this?
Above code is simply binding the dropdown values to both , i want submodules dropdown shows only states of selected country. and always shows values only when i select the country