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
<td class="text-center" style="width:100px;" name="RegistrationTypeInspectionType.InspectionTypes" value="5">
<button class="removeInspectionType" type="button" data-val="5">Remove</button>
</td>
here is a code snippet of what my C# looks like
var registrationTypeInspectionTypes =
new BusinessLayer.RegistrationTypeInspectionType().GetAll();
model.RegistrationTypeInspectionType.RegistrationTypeInspectionTypes =
registrationTypeInspectionTypes;
when I submit the form these values are not being sent to the controller.