How to call javascript function on the change of dropdownlist in ASP.Net MVC?
11487
11-Oct-2011
Updated on 23-Sep-2020
Chris Anderson
11-Oct-2011Call the function:
<%:Html.DropDownListFor(x => x.SelectedProduct, new SelectList(Model.Products, "Value", "Text"), "Please Select a product", new { id = "dropDown1", onchange="selectedIndexChanged()" })%>