<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<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>All the Good Titles Were Taken</description>
	<lastBuildDate>Mon, 23 Apr 2012 23:50:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: ampmy123</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/#comment-191</link>
		<dc:creator><![CDATA[ampmy123]]></dc:creator>
		<pubDate>Mon, 23 Apr 2012 23:50:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamzed.com/2006/12/14/using-jquery-to-hide-form-elements-based-on-a-checkbox-selection/#comment-191</guid>
		<description><![CDATA[Hello Cory. I have wrote some code to hide and show my drobdownlist base on the Checkbox check . I have one Check box ( div nonUS) and 2 dropdownlist 1. dowpdownlist state (div state) and 2. dropdownlist Countries (div nonUs1) 
 what i want is  when the page load div-nonUs1 is hide and div-state is show. and when you click on Checkbox div-nonUS  then div_nonUs1 will will show and and the div-state will hide .Here is my code is below so my problem is when the page is load div-nonUs1 is hide and div-state is show but when i click Checkbox div-nonUS . the state div is hide but nonUS is not show . If you or any body have any idea about this please help me out .
Thanks alot.


$(document).ready(
function () {

$(&#039;#nonUs1&#039;).hide();*@
$(
&#039;#nonUS&#039;).click(function () {
var thisCheck = $(this);
if (thisCheck.is(&#039;:checked&#039;)) {
$(
&#039;#nonUs1&#039;).css(&quot;display&quot;, &quot;&quot;);
}
else {
$(
&#039;#nonUs1&#039;).css(&quot;display&quot;, &quot;non&quot;);
}
});
$(
&#039;#nonUS&#039;).click(function () {
var thisCheck = $(this);
if (thisCheck.is(&#039;:checked&#039;)) {
$(
&#039;#state &#039;).css(&quot;display&quot;, &quot;none&quot;);
}
else {
$(
&#039;#state&#039;).css(&quot;display&quot;, &quot;&quot;);
}
});
@*]]></description>
		<content:encoded><![CDATA[<p>Hello Cory. I have wrote some code to hide and show my drobdownlist base on the Checkbox check . I have one Check box ( div nonUS) and 2 dropdownlist 1. dowpdownlist state (div state) and 2. dropdownlist Countries (div nonUs1)<br />
 what i want is  when the page load div-nonUs1 is hide and div-state is show. and when you click on Checkbox div-nonUS  then div_nonUs1 will will show and and the div-state will hide .Here is my code is below so my problem is when the page is load div-nonUs1 is hide and div-state is show but when i click Checkbox div-nonUS . the state div is hide but nonUS is not show . If you or any body have any idea about this please help me out .<br />
Thanks alot.</p>
<p>$(document).ready(<br />
function () {</p>
<p>$(&#8216;#nonUs1&#8242;).hide();*@<br />
$(<br />
&#8216;#nonUS&#8217;).click(function () {<br />
var thisCheck = $(this);<br />
if (thisCheck.is(&#8216;:checked&#8217;)) {<br />
$(<br />
&#8216;#nonUs1&#8242;).css(&#8220;display&#8221;, &#8220;&#8221;);<br />
}<br />
else {<br />
$(<br />
&#8216;#nonUs1&#8242;).css(&#8220;display&#8221;, &#8220;non&#8221;);<br />
}<br />
});<br />
$(<br />
&#8216;#nonUS&#8217;).click(function () {<br />
var thisCheck = $(this);<br />
if (thisCheck.is(&#8216;:checked&#8217;)) {<br />
$(<br />
&#8216;#state &#8216;).css(&#8220;display&#8221;, &#8220;none&#8221;);<br />
}<br />
else {<br />
$(<br />
&#8216;#state&#8217;).css(&#8220;display&#8221;, &#8220;&#8221;);<br />
}<br />
});<br />
@*</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Very Stupid Things (@VeryStupidThing)</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/#comment-184</link>
		<dc:creator><![CDATA[Very Stupid Things (@VeryStupidThing)]]></dc:creator>
		<pubDate>Thu, 20 Oct 2011 18:42:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamzed.com/2006/12/14/using-jquery-to-hide-form-elements-based-on-a-checkbox-selection/#comment-184</guid>
		<description><![CDATA[Hi Chris.
There is actually a very easy way to do this

        $(&quot;#checkme&quot;).click(function () {
            $(&quot;#extra&quot;).toggle(this.checked); 
        });

Short, sweet and to the point!]]></description>
		<content:encoded><![CDATA[<p>Hi Chris.<br />
There is actually a very easy way to do this</p>
<p>        $(&#8220;#checkme&#8221;).click(function () {<br />
            $(&#8220;#extra&#8221;).toggle(this.checked);<br />
        });</p>
<p>Short, sweet and to the point!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ram</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/#comment-57</link>
		<dc:creator><![CDATA[ram]]></dc:creator>
		<pubDate>Tue, 20 Sep 2011 11:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamzed.com/2006/12/14/using-jquery-to-hide-form-elements-based-on-a-checkbox-selection/#comment-57</guid>
		<description><![CDATA[thanks its worked for me...its very helpful]]></description>
		<content:encoded><![CDATA[<p>thanks its worked for me&#8230;its very helpful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vikram</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/#comment-56</link>
		<dc:creator><![CDATA[Vikram]]></dc:creator>
		<pubDate>Tue, 24 May 2011 17:35:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamzed.com/2006/12/14/using-jquery-to-hide-form-elements-based-on-a-checkbox-selection/#comment-56</guid>
		<description><![CDATA[Thanks!]]></description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vafa</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/#comment-55</link>
		<dc:creator><![CDATA[Vafa]]></dc:creator>
		<pubDate>Mon, 18 Apr 2011 16:47: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-55</guid>
		<description><![CDATA[Nice Tip

Thanks]]></description>
		<content:encoded><![CDATA[<p>Nice Tip</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerald</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/#comment-54</link>
		<dc:creator><![CDATA[Gerald]]></dc:creator>
		<pubDate>Thu, 10 Feb 2011 21:06:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamzed.com/2006/12/14/using-jquery-to-hide-form-elements-based-on-a-checkbox-selection/#comment-54</guid>
		<description><![CDATA[Thank you for the posting. That helps a lot !!!!]]></description>
		<content:encoded><![CDATA[<p>Thank you for the posting. That helps a lot !!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Iliff</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/#comment-53</link>
		<dc:creator><![CDATA[Mark Iliff]]></dc:creator>
		<pubDate>Thu, 27 Jan 2011 02:15:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamzed.com/2006/12/14/using-jquery-to-hide-form-elements-based-on-a-checkbox-selection/#comment-53</guid>
		<description><![CDATA[Magic! Just what I was looking for. Thanks.

µ]]></description>
		<content:encoded><![CDATA[<p>Magic! Just what I was looking for. Thanks.</p>
<p>µ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Webdesign Arnhem</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/#comment-52</link>
		<dc:creator><![CDATA[Webdesign Arnhem]]></dc:creator>
		<pubDate>Mon, 24 Jan 2011 20:26: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-52</guid>
		<description><![CDATA[Thanks for keeping it clean and simple, saved my day.

Peter]]></description>
		<content:encoded><![CDATA[<p>Thanks for keeping it clean and simple, saved my day.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sjors</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/#comment-48</link>
		<dc:creator><![CDATA[Sjors]]></dc:creator>
		<pubDate>Fri, 21 Jan 2011 14:50:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamzed.com/2006/12/14/using-jquery-to-hide-form-elements-based-on-a-checkbox-selection/#comment-48</guid>
		<description><![CDATA[For multiple boxes and change of div on check
&lt;code&gt;

$(document).ready(function(){

//hide the replacing text
$(&quot;#displayshort1&quot;).hide(); $(&quot;#displayshort2&quot;).hide();

//Toggle between divs
$(&quot;#checkme&quot;).click(function(){
$(&quot;#displayshort1&quot;).toggle();
$(&quot;#displaylong1&quot;).toggle();
});
$(&quot;#checkme2&quot;).click(function(){
$(&quot;#displayshort2&quot;).toggle();
$(&quot;#displaylong2&quot;).toggle();
});

    });

&lt;/code&gt;

HTML
&lt;code&gt;




  Long text
  short text



  Long text
  short text

&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>For multiple boxes and change of div on check<br />
<code></p>
<p>$(document).ready(function(){</p>
<p>//hide the replacing text<br />
$("#displayshort1").hide(); $("#displayshort2").hide();</p>
<p>//Toggle between divs<br />
$("#checkme").click(function(){<br />
$("#displayshort1").toggle();<br />
$("#displaylong1").toggle();<br />
});<br />
$("#checkme2").click(function(){<br />
$("#displayshort2").toggle();<br />
$("#displaylong2").toggle();<br />
});</p>
<p>    });</p>
<p></code></p>
<p>HTML<br />
<code></p>
<p>  Long text<br />
  short text</p>
<p>  Long text<br />
  short text</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: make content hide on checkbox click &#124; Alisso! - Victoria Wagman &#124; C.I.R.O.</title>
		<link>http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/#comment-47</link>
		<dc:creator><![CDATA[make content hide on checkbox click &#124; Alisso! - Victoria Wagman &#124; C.I.R.O.]]></dc:creator>
		<pubDate>Mon, 10 Jan 2011 09:21:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamzed.com/2006/12/14/using-jquery-to-hide-form-elements-based-on-a-checkbox-selection/#comment-47</guid>
		<description><![CDATA[[...] Dölj och visa innehåll på hemsidan (t.ex. div) med en checkbox m.h.a. jquery [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Dölj och visa innehåll på hemsidan (t.ex. div) med en checkbox m.h.a. jquery [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

