title: How to turn Html.BeginForm into Ajax.BeginForm
body: <p>The following works, but how do I convert this to an Ajax Call?</p>
  
  <pre><code>&lt;section id="loginWindow"&gt;
  @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl })) {
  @Html.AntiForgeryToken()
  @Html.ValidationSummary(true)
  
  &lt;fieldset&gt;
      &lt;legend&gt;Log in Form&lt;/legend&gt;
      &lt;ol&gt;
          &lt;li&gt;
              @Html.LabelFor(m =&gt; m.UserName)
              @Html.TextBoxFor(m =&gt; m.UserName)
              @Html.ValidationMessageFor(m =&gt; m.UserName)
          &lt;/li&gt;
          &lt;li&gt;
              @Html.LabelFor(m =&gt; m.Password)
              @Html.PasswordFor(m =&gt; m.Password)
              @Html.ValidationMessageFor(m =&gt; m.Password)
          &lt;/li&gt;
          &lt;li&gt;
              @Html.CheckBoxFor(m =&gt; m.RememberMe)
              @Html.LabelFor(m =&gt; m.RememberMe, new { @class = "checkbox" })
          &lt;/li&gt;
      &lt;/ol&gt;
      &lt;input type="submit" value="Log in" /&gt;
  &lt;/fieldset&gt;
  
  }
  &lt;/section&gt;
  </code></pre>