<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: jQuery - watch a checkbox field</title>
	<link>http://www.flipflops.org/2008/02/28/jquery-watch-a-checkbox-field/</link>
	<description>Stuff</description>
	<pubDate>Thu, 08 Jan 2009 12:46:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: Njau Ndirangu</title>
		<link>http://www.flipflops.org/2008/02/28/jquery-watch-a-checkbox-field/#comment-9274</link>
		<author>Njau Ndirangu</author>
		<pubDate>Sun, 30 Mar 2008 03:23:16 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/02/28/jquery-watch-a-checkbox-field/#comment-9274</guid>
					<description>Nice...just one question what if you have multiple checkbox that show one specific div. How do you handle it then?</description>
		<content:encoded><![CDATA[<p>Nice&#8230;just one question what if you have multiple checkbox that show one specific div. How do you handle it then?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2008/02/28/jquery-watch-a-checkbox-field/#comment-9276</link>
		<author>Flipflops</author>
		<pubDate>Mon, 31 Mar 2008 20:05:31 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/02/28/jquery-watch-a-checkbox-field/#comment-9276</guid>
					<description>Hi Naju

Glad you like it - I hope it proves useful. 

If you mean that you have to separate checkboxes each of which can control the the visibility of a div, then you would just need to to call the testCheckbox() function twice e.g.
    
$(document).ready(function(){
    testCheckbox('cb1', 'divToShow');
    testCheckbox('cb2', 'divToShow');
});

Of course - this means that you would probably want to tie the various checkboxes together so that if you tick one they other are ticked too - not too hard, but you would have to customize the function a bit to do so.</description>
		<content:encoded><![CDATA[<p>Hi Naju</p>
<p>Glad you like it - I hope it proves useful. </p>
<p>If you mean that you have to separate checkboxes each of which can control the the visibility of a div, then you would just need to to call the testCheckbox() function twice e.g.</p>
<p>$(document).ready(function(){<br />
    testCheckbox(&#8217;cb1&#8242;, &#8216;divToShow&#8217;);<br />
    testCheckbox(&#8217;cb2&#8242;, &#8216;divToShow&#8217;);<br />
});</p>
<p>Of course - this means that you would probably want to tie the various checkboxes together so that if you tick one they other are ticked too - not too hard, but you would have to customize the function a bit to do so.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
