I have a checkbox group and only want to make sure what is checked if required.It's validating all checkboxes, I only to validate the group is required.
this creates textboxes on the page, and it can be 1 or many, however, if x.Required is true, I only want to validate the group not each checkbox. Is that possible with the validator or no, if not, can I remove the checkboxes from the validator since they have an input tag with textboxes?
foreach(var x in group){ <input type="checkbox" name="@x.Location" value="@x.Text" required="@x.Required"/>}