I have a dropdown list in an MVC view. On selection change of dropdown list I want to call specific action method in the controller.
What I have done on view is this :>
Do you really need to submit the form? You could redirect:
onchange = "redirect(this.value)"
where redirect is a custom defined function:
redirect
function redirect(dropDownValue) { window.location.href = '/myController/myAction/' + dropDownValue; }