title: passing ID of dynamically created table rows to controller using MVC
body: <p>I have a table that is dynamically created using JQuery. I need to pass the IDs of every row in that table to the controller so that I can save the values to the Database. 
  My HTML for the dynamically created rows looks like this</p>
  
  <pre><code>&lt;td class="text-center" style="width:100px;" name="RegistrationTypeInspectionType.InspectionTypes" value="5"&gt;
      &lt;button class="removeInspectionType" type="button" data-val="5"&gt;Remove&lt;/button&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>here is a code snippet of what my C# looks like</p>
  
  <pre><code>var registrationTypeInspectionTypes =
                   new BusinessLayer.RegistrationTypeInspectionType().GetAll();
  
  model.RegistrationTypeInspectionType.RegistrationTypeInspectionTypes =
                                                       registrationTypeInspectionTypes;
  </code></pre>
  
  <p>when I submit the form these values are not being sent to the controller.</p>