<?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: Easiest &#8220;check all&#8221; ever with jQuery</title>
	<atom:link href="http://briancray.com/2009/08/06/check-all-jquery-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://briancray.com/2009/08/06/check-all-jquery-javascript/</link>
	<description>User Experience Design, Web Development, and Internet Marketing</description>
	<lastBuildDate>Fri, 30 Jul 2010 19:34:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
	<atom:link rel="hub" href="http://superfeedr.com/hubbub" />
		<item>
		<title>By: Ayel</title>
		<link>http://briancray.com/2009/08/06/check-all-jquery-javascript/#comment-32472</link>
		<dc:creator>Ayel</dc:creator>
		<pubDate>Sat, 24 Jul 2010 07:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=1009#comment-32472</guid>
		<description>try my code:







$(function () {
						$(&quot;#checkall&quot;).click(function () {
							$(&quot;input:checkbox.checkall&quot;).attr(&quot;checked&quot;, this.checked);
						});
					});</description>
		<content:encoded><![CDATA[<p>try my code:</p>
<p>$(function () {<br />
						$(&#8220;#checkall&#8221;).click(function () {<br />
							$(&#8220;input:checkbox.checkall&#8221;).attr(&#8220;checked&#8221;, this.checked);<br />
						});<br />
					});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor Saint</title>
		<link>http://briancray.com/2009/08/06/check-all-jquery-javascript/#comment-32456</link>
		<dc:creator>Trevor Saint</dc:creator>
		<pubDate>Mon, 12 Jul 2010 15:14:54 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=1009#comment-32456</guid>
		<description>Very nice. Thanks for the information.

FYI

I find a regular occurrence when browsing many sites that people don&#039;t seem to care for those without JS. Meaning this check all functionality is cool, and adds extra for those that have JS.

But ideally the approach that I would take is to output the check all checkbox using JS as well. This way functionality is not added that won&#039;t work if the user has turned off JS. 

Simply put. The check all checkbox won&#039;t be shown if JS is turned off. ;).

Just an idea.</description>
		<content:encoded><![CDATA[<p>Very nice. Thanks for the information.</p>
<p>FYI</p>
<p>I find a regular occurrence when browsing many sites that people don&#8217;t seem to care for those without JS. Meaning this check all functionality is cool, and adds extra for those that have JS.</p>
<p>But ideally the approach that I would take is to output the check all checkbox using JS as well. This way functionality is not added that won&#8217;t work if the user has turned off JS. </p>
<p>Simply put. The check all checkbox won&#8217;t be shown if JS is turned off. <img src='http://briancray.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>Just an idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zdenka</title>
		<link>http://briancray.com/2009/08/06/check-all-jquery-javascript/#comment-32264</link>
		<dc:creator>Zdenka</dc:creator>
		<pubDate>Fri, 09 Apr 2010 11:10:35 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=1009#comment-32264</guid>
		<description>Great, exactly what I needed, thanks!!</description>
		<content:encoded><![CDATA[<p>Great, exactly what I needed, thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: downtroden</title>
		<link>http://briancray.com/2009/08/06/check-all-jquery-javascript/#comment-32087</link>
		<dc:creator>downtroden</dc:creator>
		<pubDate>Thu, 18 Mar 2010 16:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=1009#comment-32087</guid>
		<description>duh… found the solution to the problem that mojito and I shared, instead of searching for an id (unique to the page) change to it to searching for a class. Voila.

Thanks for this though, REALLY nice little piece of jquery.</description>
		<content:encoded><![CDATA[<p>duh… found the solution to the problem that mojito and I shared, instead of searching for an id (unique to the page) change to it to searching for a class. Voila.</p>
<p>Thanks for this though, REALLY nice little piece of jquery.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Cray</title>
		<link>http://briancray.com/2009/08/06/check-all-jquery-javascript/#comment-32085</link>
		<dc:creator>Brian Cray</dc:creator>
		<pubDate>Thu, 18 Mar 2010 16:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=1009#comment-32085</guid>
		<description>@mojito + @downtrodden - try the new code.</description>
		<content:encoded><![CDATA[<p>@mojito + @downtrodden &#8211; try the new code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: downtroden</title>
		<link>http://briancray.com/2009/08/06/check-all-jquery-javascript/#comment-32084</link>
		<dc:creator>downtroden</dc:creator>
		<pubDate>Thu, 18 Mar 2010 16:33:38 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=1009#comment-32084</guid>
		<description>having the same problem as mojito</description>
		<content:encoded><![CDATA[<p>having the same problem as mojito</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mojito</title>
		<link>http://briancray.com/2009/08/06/check-all-jquery-javascript/#comment-31845</link>
		<dc:creator>mojito</dc:creator>
		<pubDate>Wed, 27 Jan 2010 22:20:57 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=1009#comment-31845</guid>
		<description>Thanks for this writeup!
Will this work if two fieldsets are defined on the same page ? I have some divs which I show and hide based on a user selection. So I&#039;d like to do something as follows:



	// these will be affected by check all
	 Check all
	 Checkbox
	 Checkbox
	 Checkbox





	 Check all
	 Checkbox
	 Checkbox
	 Checkbox



I tried this but the Select all toggle effect appears only on the first fieldset tags.</description>
		<content:encoded><![CDATA[<p>Thanks for this writeup!<br />
Will this work if two fieldsets are defined on the same page ? I have some divs which I show and hide based on a user selection. So I&#8217;d like to do something as follows:</p>
<p>	// these will be affected by check all<br />
	 Check all<br />
	 Checkbox<br />
	 Checkbox<br />
	 Checkbox</p>
<p>	 Check all<br />
	 Checkbox<br />
	 Checkbox<br />
	 Checkbox</p>
<p>I tried this but the Select all toggle effect appears only on the first fieldset tags.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caleb</title>
		<link>http://briancray.com/2009/08/06/check-all-jquery-javascript/#comment-31844</link>
		<dc:creator>Caleb</dc:creator>
		<pubDate>Wed, 27 Jan 2010 19:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=1009#comment-31844</guid>
		<description>Check out the &#039;closest&#039; selector, new in jQuery 1.4, which seems like it would be faster than selecting then filtering through parents.  http://api.jquery.com/closest/

Also, .find(&#039;:checkbox&#039;) is equivalent to .find(&#039;*:checkbox&#039;), which is likely less efficient than limiting it to .find(&#039;input:checkbox&#039;).

Nice solution, thanks for sharing.</description>
		<content:encoded><![CDATA[<p>Check out the &#8216;closest&#8217; selector, new in jQuery 1.4, which seems like it would be faster than selecting then filtering through parents.  <a href="http://api.jquery.com/closest/" rel="nofollow">http://api.jquery.com/closest/</a></p>
<p>Also, .find(&#8216;:checkbox&#8217;) is equivalent to .find(&#8216;*:checkbox&#8217;), which is likely less efficient than limiting it to .find(&#8216;input:checkbox&#8217;).</p>
<p>Nice solution, thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seo</title>
		<link>http://briancray.com/2009/08/06/check-all-jquery-javascript/#comment-31792</link>
		<dc:creator>seo</dc:creator>
		<pubDate>Thu, 14 Jan 2010 12:09:41 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=1009#comment-31792</guid>
		<description>thanx perfect</description>
		<content:encoded><![CDATA[<p>thanx perfect</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad Huntley</title>
		<link>http://briancray.com/2009/08/06/check-all-jquery-javascript/#comment-31568</link>
		<dc:creator>Chad Huntley</dc:creator>
		<pubDate>Thu, 31 Dec 2009 18:59:34 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=1009#comment-31568</guid>
		<description>It would make more sense to break these up by using different classes then fieldsets. You can assign multiple classes to each checkbox which will allow you to pick and chose which you want checked no matter what fieldset it is in.

http://elementdesignllc.com/2009/12/jquery-select-all-checkboxes/</description>
		<content:encoded><![CDATA[<p>It would make more sense to break these up by using different classes then fieldsets. You can assign multiple classes to each checkbox which will allow you to pick and chose which you want checked no matter what fieldset it is in.</p>
<p><a href="http://elementdesignllc.com/2009/12/jquery-select-all-checkboxes/" rel="nofollow">http://elementdesignllc.com/2009/12/jquery-select-all-checkboxes/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
