Refer the link Validating checkboxList Asp.Net control using javascript for details. Please try:
<script language="javascript" type="text/javascript">
function CheckItem(sender, args){
var chkControlId = '<%=chkMealPeriod.ClientID%> '
var options = document.getElementById(chkControlId).getElementsByTagName('input');
var ischecked=false;
args.IsValid =false;
for(i=0;i<options.length;i++)
{
var opt = options[i];
if(opt.type=="checkbox")
{
if(opt.checked)
{
ischecked= true;
args.IsValid = true;
}
}
}
}
1
solved Check at least one checkboxlist item is selected in Javascript