title: Add content of ajax form to div ASP.NET MVC
body: <p>I have this ajax form:</p>
  <pre><code>@using (@Ajax.BeginForm(&quot;Create&quot;, &quot;Comment&quot;, new AjaxOptions { HttpMethod = &quot;POST&quot;, UpdateTargetId = &quot;comments&quot;, InsertionMode = InsertionMode.InsertBefore }))
  {
  @Html.AntiForgeryToken()
  
  &lt;div class=&quot;form-horizontal&quot;&gt;
      &lt;hr /&gt;
      @Html.ValidationSummary(true, &quot;&quot;, new { @class = &quot;text-danger&quot; })
      &lt;div class=&quot;form-group&quot;&gt;
              @Html.TextAreaFor(model =&gt; model.Content, new{@class = &quot;form-control&quot;, id = &quot;exampleFormControlTextarea1&quot;, rows = &quot;5&quot;, width = &quot;100%&quot;, placeholder = &quot;Enter a comment here...&quot; })
              @Html.ValidationMessageFor(model =&gt; model.Content, &quot;&quot;, new { @class = &quot;text-danger&quot; })
      &lt;/div&gt;
  
      &lt;div class=&quot;form-group&quot;&gt;
          &lt;div class=&quot;col-md-10&quot;&gt;
              &lt;input type=&quot;submit&quot; value=&quot;Create&quot; class=&quot;btn btn-default&quot; /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  }
  </code></pre>
  <p>And want to add the whole content after it gets posted to this div:</p>
  <pre><code>&lt;div class=&quot;comments&quot;&gt;&lt;/div&gt;
  </code></pre>
  <p>After searching a bit, I know it should be doable with <code>UpdateTargetId</code> and <code>InsertionMode</code>, but I still don't get it. Any help would be appreciated!</p>