<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to select checkboxes in an ASP.NET CheckBoxList using jQuery</title>
	<atom:link href="http://www.joe-stevens.com/2010/03/18/how-to-select-checkboxes-in-an-asp-net-checkboxlist-using-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joe-stevens.com/2010/03/18/how-to-select-checkboxes-in-an-asp-net-checkboxlist-using-jquery/</link>
	<description>Everything .NET and C#</description>
	<lastBuildDate>Wed, 01 Feb 2012 21:25:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: John rob</title>
		<link>http://www.joe-stevens.com/2010/03/18/how-to-select-checkboxes-in-an-asp-net-checkboxlist-using-jquery/comment-page-1/#comment-21306</link>
		<dc:creator>John rob</dc:creator>
		<pubDate>Wed, 11 Jan 2012 15:56:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=467#comment-21306</guid>
		<description>Really this is a good article, which helps a lot for beginners as me as well as developer. Thanks for sharing with us. Check out this helpful link too its also having nice post with wonderful explanation on CheckBoxList Control in ASP.Net....

http://mindstick.com/Articles/75f78330-82ff-4989-b06b-2975933209a7/?CheckBoxList%20Control%20in%20ASP.Net

Thanks</description>
		<content:encoded><![CDATA[<p>Really this is a good article, which helps a lot for beginners as me as well as developer. Thanks for sharing with us. Check out this helpful link too its also having nice post with wonderful explanation on CheckBoxList Control in ASP.Net&#8230;.</p>
<p><a href="http://mindstick.com/Articles/75f78330-82ff-4989-b06b-2975933209a7/?CheckBoxList%20Control%20in%20ASP.Net" rel="nofollow">http://mindstick.com/Articles/75f78330-82ff-4989-b06b-2975933209a7/?CheckBoxList%20Control%20in%20ASP.Net</a></p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.joe-stevens.com/2010/03/18/how-to-select-checkboxes-in-an-asp-net-checkboxlist-using-jquery/comment-page-1/#comment-21035</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Mon, 03 Oct 2011 06:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=467#comment-21035</guid>
		<description>Hi Jamie

There are a couple of ways you could do it. One way would be to hook up to each checkbox&#039;s change event, then compare the number of checkboxes with the number of checked checkboxes.

Here is a jQuery function that would do it for a CheckBoxList with the ID cblFeature and a Label with ID lblMessage. I&#039;ve set the ClientIDMode to static.

&lt;code&gt;
$().ready(function () {
    $(&quot;[id^=cblFeature]:checkbox&quot;).change(function () {
        var checkboxCount = $(&quot;[id^=cblFeature]:checkbox&quot;).length;
        var checkedCount = $(&quot;[id^=cblFeature]:checkbox:checked&quot;).length;

        if (checkboxCount == checkedCount) {
            $(&quot;#lblMessage&quot;).html(&quot;All features selected&quot;);
        } else {
            $(&quot;#lblMessage&quot;).html(&quot; &quot;);
        }
    });
});
&lt;/code&gt;

Cheers
Joe</description>
		<content:encoded><![CDATA[<p>Hi Jamie</p>
<p>There are a couple of ways you could do it. One way would be to hook up to each checkbox&#8217;s change event, then compare the number of checkboxes with the number of checked checkboxes.</p>
<p>Here is a jQuery function that would do it for a CheckBoxList with the ID cblFeature and a Label with ID lblMessage. I&#8217;ve set the ClientIDMode to static.</p>
<p><code><br />
$().ready(function () {<br />
    $("[id^=cblFeature]:checkbox").change(function () {<br />
        var checkboxCount = $("[id^=cblFeature]:checkbox").length;<br />
        var checkedCount = $("[id^=cblFeature]:checkbox:checked").length;</p>
<p>        if (checkboxCount == checkedCount) {<br />
            $("#lblMessage").html("All features selected");<br />
        } else {<br />
            $("#lblMessage").html(" ");<br />
        }<br />
    });<br />
});<br />
</code></p>
<p>Cheers<br />
Joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://www.joe-stevens.com/2010/03/18/how-to-select-checkboxes-in-an-asp-net-checkboxlist-using-jquery/comment-page-1/#comment-21031</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Tue, 27 Sep 2011 14:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=467#comment-21031</guid>
		<description>Do you know how I can show an error message when all of my checkboxes have been chosen already? My checkboxes are dynamically pulled into a modal, which allows features to be added. When all features are added and the modal is empty, I need an error message to tell the user that all features have been assigned.</description>
		<content:encoded><![CDATA[<p>Do you know how I can show an error message when all of my checkboxes have been chosen already? My checkboxes are dynamically pulled into a modal, which allows features to be added. When all features are added and the modal is empty, I need an error message to tell the user that all features have been assigned.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

