I have got a checkbox group control that I want to require the user to check at least ONE box, it does not matter if they check every single one, or 3, or even just one.
View code
---------
<% foreach (var item in Model)
{ %>
<%:Html.CheckBox("EmployeId", new { value = item.EmployeeID,@class="required"})%>
<span class="field-validation-valid" id="Span1"></span>
<%:Html.LabelForModel(item.EmployeeName)%>
</div>
<%-- <%= Html.CheckBox("Accept", new { @class = "required" })%>
<span class="field-validation-valid" id="Accept_validationMessage"></span>--%>
<%} %>
</fieldset>
<div class="assign_button">
Can anyone please give me some help with this?
✓symbol on answers that you want to accepted.