title: How to handle repeating form fields in ASP MVC
body: <p>I have a form which asks users for their personal info and their family members.<br/>
  fields of the family members section is repeating.<br/>
  my question is what is best practice to handle these kind of repeating forms?<br/>
  I currently use AJAX to repeat forms but how to collect data from these repeating fields?
  <img src="https://i.stack.imgur.com/x5gtI.jpg" alt="enter image description here"></p>
  
  <p><br/>
  since some one asked for how I repeat form, I do it like this:
  <strong>AJAX Call</strong></p>
  
  <pre><code>$(document).on('click', '.btn-add-item', function (e) {
      e.preventDefault();
      var $results = $('#results');
      $.ajax({
          url: '/AJAX/AddFamilyForm',
          type: 'post',
          success: function (data) {
              $(data).appendTo($results);
              afterAJAX();
          }
      });
  });
  </code></pre>
  
  <p><strong>C# code</strong></p>
  
  <pre><code>[HttpPost]
  public PartialViewResult AddFamilyForm()
  {
      if (!Request.IsAjaxRequest()) return null;
      return PartialView("_FamilyForm");
  }
  </code></pre>