title: Call an action from a Html.Dropdown onchange event in ASP.Net MVC 5
body: <p>I'm trying to call the action in the controller when the dropdown selected item changes. Here is the code I am using but it is not working. </p>
  
  <pre><code> @Html.DropDownList("UserID", null, new { @onchange = "location.href='@Url.Action("Action", "Controller")'" })
  </code></pre>
  
  <p>What is the correct syntax? I tried to call a javascript function and it works.</p>
  
  <pre><code>@Html.DropDownList("UserID", null, new { @onchange = "leaveChange(this);" })
  </code></pre>
  
  <p>leaveChange(control) is my javascript function.</p>
  
  <p>However, I am unable to invoke the action of the controller. Also, How do I then pass the value of the selected item to the action?</p>