aspdotnet-suresh offers articles and tutorials,csharp dot net, articles and tutorials,VB.NET Articles,Gridview articles,code examples of 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

jQuery Validate CheckBoxList in Asp.Net Example

Sep 12, 2012

Here I will explain how to validate checkboxlist using
JQuery using

In previous articles I explained validate radiobuttonlist using JQuery,
validate email address using JQuery, how to disable or enable all the controls on page using JQuery , validate phone number using JQuery and many articles relating to JQuery. Now I will explain how to validate checkboxlist using JQuery in

To implement this one we need to write code as shown below in your aspx page

<html xmlns="">
<head id="Head1" runat="server">
<title>Validate Checkboxlist in JQuery</title>
<script type="text/javascript" src="">
<script type="text/javascript" language="javascript">
$(document).ready(function() {
$('#btnSubmit').click(function() {
if ($('#chktech input:checked').length > 0) {
return true;
else {
alert('Please select atleast one technology')
return false;

<form id="form1" runat="server">
<td> <b>Select Technologies:</b></td>
<asp:CheckBoxList ID="chktech" runat="server" >
<asp:ListItem Value="1" Text="" />
<asp:ListItem Value="2" Text="C#.NET" />
<asp:ListItem Value="3" Text="JQuery" />
<asp:ListItem Value="4" Text="JavaScript" />
<asp:ListItem Value="5" Text="SQL Server" />
<asp:Button ID="btnSubmit" Text="Submit" runat="server" />

If you observe above code in header section I added script file link by using that file we have a chance to interact with JQuery and in the script we have btnSubmit button click function which is used to validate checkboxlist using JQuery in


If you enjoyed this post, please support the blog below. It's FREE!

Get the latest,, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email


Swapnil said...


Give your Valuable Comments

Note: Only a member of this blog may post a comment.

© 2015 All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.