InterviewSolution
Saved Bookmarks
| 1. |
How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC? |
|
Answer» Create a JavaScript method: function DrpIndexChanged() { }Invoke the method:< %:Html.DropDownListFor(x => x.SelectedProduct, new SelectList(Model.Customers, "Value", "Text"), "Please Select a Customer", new { id = "ddlCustomers", onchange=" DrpIndexChanged ()" })%>
|
|