title: Is it possible to render partial view from jquery in ASP MVC
body: <p>I have a div that is loaded with list of partials:</p>
  
  <pre><code>@foreach (var comment in Model.Comments)
      {
          Html.RenderPartial("~/Views/Comment/_CommentView.cshtml", comment);
      }
  </code></pre>
  
  <p>When user scrolls down to the bottom of the page I load new comments in that div:</p>
  
  <pre><code>public ActionResult LoadMore(int pageIndex)
          {
              int _pageSize = 10;
              var model = ... get comments
              return Json(model.ToList(), JsonRequestBehavior.AllowGet);
          }
  </code></pre>
  
  <p>In page jquery function I add new comments like</p>
  
  <pre><code>for (var i = 0; i &lt; response.length; i++) {
              ctrls.push("&lt;div class='comment'&gt; &lt;h4&gt;" +"response[i].CommentText" + "&lt;/h4&gt;&lt;/div&gt;");
          }
  </code></pre>
  
  <p>But this code is not reusable at all so I want to make it better.<br/>
  Is it possible to:<br/><br/>
  1) Somehow render partial in JS function and pass data in?<br/>
  2) Return list of partials from ActionMethod and just add it from JS function?</p>