title: MVC 4 - How can I load a View using JavaScript
body: <p>I am pretty new to MVC and JavaScript. I have a dropdown ('ProcessGroupRevisions') on a View and when the user selects a certain item in the drop down, I want to execute an action in a controller that will render a new view. I have the following code which is sort of stubbed out. But I know it's not right (because it doesn't work), but I'm not sure what I need to do to make it work.</p>
  
  <pre><code>        // This handles the onchange for the Revisions dropdown.
          $("#ProcessGroupRevisions").change(function () {
              if ($("#ProcessGroupRevisions").prop("value") == "-1") {
                  '@Url.Action("AddNewRevision", "SetpointManagement", new RouteValueDictionary { { "processGroupId", ViewBag.ProcessGroupId } })';
              }
          });
  </code></pre>