<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kaydoo &#187; jQuery</title>
	<atom:link href="http://www.kaydoo.co.uk/category/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kaydoo.co.uk</link>
	<description>A Day in the Life of a Developer</description>
	<lastBuildDate>Tue, 18 May 2010 08:29:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Multiple Check Checkbox</title>
		<link>http://www.kaydoo.co.uk/2008/03/multiple-check-checkbox</link>
		<comments>http://www.kaydoo.co.uk/2008/03/multiple-check-checkbox#comments</comments>
		<pubDate>Fri, 28 Mar 2008 15:27:57 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[checkbox]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.kaydoo.co.uk/2008/03/multiple-check-checkbox</guid>
		<description><![CDATA[As I am nearing the end of my initial development phase of BackendPro there&#8217;s some useful bits of code I came up with to handle annoying but simple tasks. Over the next week or so I will be releasing a lot more small applications and libraries but felt this may help a few people. Its [...]]]></description>
			<content:encoded><![CDATA[<p>As I am nearing the end of my initial development phase of BackendPro there&#8217;s some useful bits of code I came up with to handle annoying but simple tasks. Over the next week or so I will be releasing a lot more small applications and libraries but felt this may help a few people. Its a small script to check and un-check multiple html check boxes. Its prime use is to save the user time from having to check/un-check many check boxes. It uses jQuery and is only 1/2 lines long.</p>
<pre class="brush: jscript">$(&quot;input[name=&#039;all&#039;]&quot;).change(function(){
var parent = $(this);
$(&quot;input[name=&#039;&quot;+parent.val()+&quot;[]&#039;]&quot;,parent.parents(&#039;form:first&#039;)).each(function(){$(this).attr(&#039;checked&#039;,parent.is(&#039;:checked&#039;));});
});</pre>
<p>All you need to use it is the following HTML code.</p>
<pre class="brush: html">&lt;form&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;all&quot; value=&quot;myitems&quot;&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;myitems[]&quot; value=&quot;1&quot;&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;myitems[]&quot; value=&quot;2&quot;&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;myitems[]&quot; value=&quot;3&quot;&gt;
&lt;/form&gt;</pre>
<p>So when the user clicks on the check box with name <strong>all</strong>, all check boxes with the name specified in the value attribute of this &#8216;<strong>all</strong>&#8216; check box will be toggled. I hope someone finds it helpful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kaydoo.co.uk/2008/03/multiple-check-checkbox/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
