【发布时间】:2018-05-07 12:27:55
【问题描述】:
@Html.DropDownList("CountryID", (SelectList)ViewBag.CounrtyList,new { style = "width:150px;" })
@Html.DropDownList("CityID", (SelectList)ViewBag.CityList,new { style = "width:150px;" })
@Html.DropDownList("StateID", (SelectList)ViewBag.StateList,new { style = "width:150px;" })
@Html.DropDownList("DistrictID", (SelectList)ViewBag.DistrictList,new { style = "width:150px;" })
更改 Country 下拉菜单时,如何在单个 ajax 调用中更改城市、州和地区值?
【问题讨论】:
-
建议大家学习this DotNetFiddle中的代码
标签: ajax asp.net-mvc dropdown viewbag