Jquery populate drop down list in mvc
问题 I am trying to populate a drop down list an I am still very confused about J query as I am very new to it. this is my code: in the controller: [AcceptVerbs(HttpVerbs.Post)] public ActionResult GetTeams(StatisticModel model) { StatisticModel newModel = new StatisticModel(model.leagueId); var teams = newModel.getTeams; return Json(teams); } in view: <%: Html.DropDownListFor(model => model.teamIdHome, Model.getTeams, new { @class = "dropdownlistStyle" })%> the jquery: $(function() { $("