title: post data with jQuery and redirect to another action
body: <p>View:   </p>
  
  <pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"&gt;
  
  &lt;h2&gt;Index&lt;/h2&gt;
  
  &lt;script type="text/javascript"&gt;
  
  
  $(document).ready(function() {
  
     $(document).ready(function() {
  
      $("#example").submit(function() {
          var id = $("#id").val();
          var prezime = $("#prezime").val();
  
          $.post("/jQueryPost/PostingData", { id: id, prezime: prezime }, function(res) {
              if (res.redirect) {
                  window.location.href = res.redirect;
                  return;
              }
  
          }, "json");
          return false;
      });
  });
  &lt;/script&gt;
  
  &lt;form id="example" method = "post"&gt;
  
      Id:&lt;input id="id" type="text" /&gt;
      Prezime:&lt;input id="prezime" type="text" /&gt;
  
  &lt;p&gt;
      &lt;input type="submit" value="Post Data" /&gt;
  &lt;/p&gt;
  &lt;/form&gt;
  
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>Controller action:</p>
  
  <pre><code>    [HttpPost]
      public ActionResult PostingData(int id, string prezime)
      {
  
          //some code
  
          return Json(new { redirect = Url.Action("Create") });
      }
  </code></pre>
  
  <p>Tnx, this code solve my problem</p>