Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
6800 Points
1549 Posts
Jan 24, 2012 01:34 PM|LINK
hai
try this code:
<script type="text/javascript"> function ValidateContactCheckBox(source, args) { debugger; var checkbox = $('#<%=chkContact.ClientID %> input[type=checkbox]:checked'); for (var i = 0; i < checkbox.length; i++) { if ($(checkbox[i]).next()[0].innerHTML >3) {
alert('Maximum of three checkboxes only can be selected');
args.IsValid = false;
} }
args.IsValid = true; return;
} </script>
srinanthuram
Contributor
6800 Points
1549 Posts
Re: Radio button group validation
Jan 24, 2012 01:34 PM|LINK
hai
try this code:
alert('Maximum of three checkboxes only can be selected');