<?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: Using jQuery to Show/Hide Form Elements Based on a Checkbox Selection</title>
	<atom:link href="http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/feed/" rel="self" type="application/rss+xml" />
	<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/</link>
	<description>Chris Scott's Blog</description>
	<lastBuildDate>Fri, 15 Jan 2010 04:09:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: william</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/comment-page-1/#comment-19519</link>
		<dc:creator>william</dc:creator>
		<pubDate>Sun, 29 Nov 2009 01:42:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamzed.com/2006/12/14/using-jquery-to-hide-form-elements-based-on-a-checkbox-selection/#comment-19519</guid>
		<description>THX alot!! 

I tried many websites solutions, but yours just seem to work the first time.. thx</description>
		<content:encoded><![CDATA[<p>THX alot!! </p>
<p>I tried many websites solutions, but yours just seem to work the first time.. thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/comment-page-1/#comment-17130</link>
		<dc:creator>Cory</dc:creator>
		<pubDate>Wed, 16 Sep 2009 15:23:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamzed.com/2006/12/14/using-jquery-to-hide-form-elements-based-on-a-checkbox-selection/#comment-17130</guid>
		<description>instead of using this:
&lt;code&gt;
$(&quot;#checkme&quot;).click(function(){
  // If checked
  if ($(&quot;#checkme&quot;).is(&quot;:checked&quot;)) {
    //show the hidden div
    $(&quot;#extra&quot;).show(&quot;fast&quot;);
  } else {     
    //otherwise, hide it
    $(&quot;#extra&quot;).hide(&quot;fast&quot;);
  }
});&lt;/code&gt;

you can simply use:
&lt;code&gt;
$(&quot;#checkme&quot;).click(function(){
  $(&quot;#extra&quot;).toggle();
});
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>instead of using this:<br />
<code><br />
$("#checkme").click(function(){<br />
  // If checked<br />
  if ($("#checkme").is(":checked")) {<br />
    //show the hidden div<br />
    $("#extra").show("fast");<br />
  } else {<br />
    //otherwise, hide it<br />
    $("#extra").hide("fast");<br />
  }<br />
});</code></p>
<p>you can simply use:<br />
<code><br />
$("#checkme").click(function(){<br />
  $("#extra").toggle();<br />
});<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Camilo Olea</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/comment-page-1/#comment-16535</link>
		<dc:creator>Camilo Olea</dc:creator>
		<pubDate>Mon, 24 Aug 2009 22:20:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamzed.com/2006/12/14/using-jquery-to-hide-form-elements-based-on-a-checkbox-selection/#comment-16535</guid>
		<description>Hi!

Great! This is just what I need for a project! =)

Just 1 question, though...

suppose you have 2 checkboxes, and want to only show one of them. For ex, option A and option B, and I want to do it so that whenever any option is selected, the other checkbox is disabled, so that only one checkbox can be checked.

How could I do this?

Thanks!

Cheers from Cancun,Mexico! =)

Camilo Olea</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Great! This is just what I need for a project! =)</p>
<p>Just 1 question, though&#8230;</p>
<p>suppose you have 2 checkboxes, and want to only show one of them. For ex, option A and option B, and I want to do it so that whenever any option is selected, the other checkbox is disabled, so that only one checkbox can be checked.</p>
<p>How could I do this?</p>
<p>Thanks!</p>
<p>Cheers from Cancun,Mexico! =)</p>
<p>Camilo Olea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phoebebright@spamcop.net</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/comment-page-1/#comment-16189</link>
		<dc:creator>Phoebebright@spamcop.net</dc:creator>
		<pubDate>Mon, 17 Aug 2009 16:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamzed.com/2006/12/14/using-jquery-to-hide-form-elements-based-on-a-checkbox-selection/#comment-16189</guid>
		<description>Great help  - Thanks.</description>
		<content:encoded><![CDATA[<p>Great help  -- Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bcorreia@bcdc.us</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/comment-page-1/#comment-15282</link>
		<dc:creator>bcorreia@bcdc.us</dc:creator>
		<pubDate>Tue, 14 Jul 2009 18:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamzed.com/2006/12/14/using-jquery-to-hide-form-elements-based-on-a-checkbox-selection/#comment-15282</guid>
		<description>Thanks. As an additional observation, using slideDown and slideUp or simply slideToggle can also achieve a desired effect. It sometimes plays smoother without bumping elements around it.</description>
		<content:encoded><![CDATA[<p>Thanks. As an additional observation, using slideDown and slideUp or simply slideToggle can also achieve a desired effect. It sometimes plays smoother without bumping elements around it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
