<?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: Basic Show and Hide</title>
	<atom:link href="http://www.learningjquery.com/2006/09/basic-show-and-hide/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learningjquery.com/2006/09/basic-show-and-hide</link>
	<description>Tips, techniques, and tutorials for the jQuery JavaScript library</description>
	<pubDate>Tue, 06 Jan 2009 21:13:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jagadishwor</title>
		<link>http://www.learningjquery.com/2006/09/basic-show-and-hide/comment-page-1#comment-63871</link>
		<dc:creator>jagadishwor</dc:creator>
		<pubDate>Tue, 30 Dec 2008 15:57:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/09/basic-show-and-hide#comment-63871</guid>
		<description>Hi nice article, I have one very easy and short which will work on a button click here is the code

$(document).ready(function(){ // This Function check for ready position
$("button").click(function () { //When you press the button if div is visible it will hide it. 
$("div:visible").hide("slow");
}
);
$("button").click(function () { //And if div is hidden it will show it 
$("div:hidden").show("slow");
}
);
}
);
 
In above example your contents will not be shown when ready. To show contains use following line after ready function

$("div:hidden").show("slow"); 
Have some style for div

div { width:auto; height:auto; margin:5px; border:3px outset green; float:left; }

Now Create the Button: 

Show hide div 

And at the last use div:

This is the Test layer for show or hide your page.
can get download at www.jagadishwor.com.np</description>
		<content:encoded><![CDATA[<p>Hi nice article, I have one very easy and short which will work on a button click here is the code</p>
<p>$(document).ready(function(){ // This Function check for ready position<br />
$(&#8221;button&#8221;).click(function () { //When you press the button if div is visible it will hide it.<br />
$(&#8221;div:visible&#8221;).hide(&#8221;slow&#8221;);<br />
}<br />
);<br />
$(&#8221;button&#8221;).click(function () { //And if div is hidden it will show it<br />
$(&#8221;div:hidden&#8221;).show(&#8221;slow&#8221;);<br />
}<br />
);<br />
}<br />
);</p>
<p>In above example your contents will not be shown when ready. To show contains use following line after ready function</p>
<p>$(&#8221;div:hidden&#8221;).show(&#8221;slow&#8221;);<br />
Have some style for div</p>
<p>div { width:auto; height:auto; margin:5px; border:3px outset green; float:left; }</p>
<p>Now Create the Button: </p>
<p>Show hide div </p>
<p>And at the last use div:</p>
<p>This is the Test layer for show or hide your page.<br />
can get download at <a href="http://www.jagadishwor.com.np" rel="nofollow">http://www.jagadishwor.com.np</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohit</title>
		<link>http://www.learningjquery.com/2006/09/basic-show-and-hide/comment-page-1#comment-63812</link>
		<dc:creator>Rohit</dc:creator>
		<pubDate>Mon, 15 Dec 2008 14:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/09/basic-show-and-hide#comment-63812</guid>
		<description>nice example thanks</description>
		<content:encoded><![CDATA[<p>nice example thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ditax</title>
		<link>http://www.learningjquery.com/2006/09/basic-show-and-hide/comment-page-1#comment-63739</link>
		<dc:creator>ditax</dc:creator>
		<pubDate>Fri, 05 Dec 2008 08:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/09/basic-show-and-hide#comment-63739</guid>
		<description>How to hide editor/textarea with jquery? thx</description>
		<content:encoded><![CDATA[<p>How to hide editor/textarea with jquery? thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aa</title>
		<link>http://www.learningjquery.com/2006/09/basic-show-and-hide/comment-page-1#comment-63717</link>
		<dc:creator>aa</dc:creator>
		<pubDate>Mon, 01 Dec 2008 23:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/09/basic-show-and-hide#comment-63717</guid>
		<description>Hi,

I really like the script. I am working on a long government document and I want to be able to show and hide certain blocks of text.

Here's the problem that I have. Should someone want to print out the entire document (even the hidden parts), it seems that it cannot be done if this script is being used to show and hide stuff. If I display all the hidden parts, then it works. But what if there are 50 hidden blocks of text? This would mean I would have to display all 50 blocks before printing which the end user might not know they would have to do.

Is there anyway to write some JS that will turn this show/hide feature off whenever the page is printed.

Thanks,

Rob


Rob, try the css media print ....</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I really like the script. I am working on a long government document and I want to be able to show and hide certain blocks of text.</p>
<p>Here&#8217;s the problem that I have. Should someone want to print out the entire document (even the hidden parts), it seems that it cannot be done if this script is being used to show and hide stuff. If I display all the hidden parts, then it works. But what if there are 50 hidden blocks of text? This would mean I would have to display all 50 blocks before printing which the end user might not know they would have to do.</p>
<p>Is there anyway to write some JS that will turn this show/hide feature off whenever the page is printed.</p>
<p>Thanks,</p>
<p>Rob</p>
<p>Rob, try the css media print &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Beck</title>
		<link>http://www.learningjquery.com/2006/09/basic-show-and-hide/comment-page-1#comment-63421</link>
		<dc:creator>Andrew Beck</dc:creator>
		<pubDate>Mon, 03 Nov 2008 14:56:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/09/basic-show-and-hide#comment-63421</guid>
		<description>Oh, and another question: how would I make reverse the direction of the animation? Thank you! I think I am going to buy your book. . .</description>
		<content:encoded><![CDATA[<p>Oh, and another question: how would I make reverse the direction of the animation? Thank you! I think I am going to buy your book. . .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Beck</title>
		<link>http://www.learningjquery.com/2006/09/basic-show-and-hide/comment-page-1#comment-63420</link>
		<dc:creator>Andrew Beck</dc:creator>
		<pubDate>Mon, 03 Nov 2008 14:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/09/basic-show-and-hide#comment-63420</guid>
		<description>Thanks for this, Karl. I really appreciate the work you do. I have a question on the &lt;a href="http://test.learningjquery.com/a.html" rel="nofollow"&gt;test page&lt;/a&gt; that you set up for Scott. I want to do something similar with a sprite-based navigation, but need the toggle to be on the hover event, not the click. How would I do that?</description>
		<content:encoded><![CDATA[<p>Thanks for this, Karl. I really appreciate the work you do. I have a question on the <a href="http://test.learningjquery.com/a.html" rel="nofollow">test page</a> that you set up for Scott. I want to do something similar with a sprite-based navigation, but need the toggle to be on the hover event, not the click. How would I do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fred Campbell</title>
		<link>http://www.learningjquery.com/2006/09/basic-show-and-hide/comment-page-1#comment-54257</link>
		<dc:creator>Fred Campbell</dc:creator>
		<pubDate>Sun, 31 Aug 2008 08:58:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/09/basic-show-and-hide#comment-54257</guid>
		<description>Nice one! I am new to jQuery and finding it very frustrating to get my head round - up to now I've only been involved in CSS web design.</description>
		<content:encoded><![CDATA[<p>Nice one! I am new to jQuery and finding it very frustrating to get my head round - up to now I&#8217;ve only been involved in CSS web design.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asinox</title>
		<link>http://www.learningjquery.com/2006/09/basic-show-and-hide/comment-page-1#comment-51561</link>
		<dc:creator>asinox</dc:creator>
		<pubDate>Fri, 18 Jul 2008 19:26:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/09/basic-show-and-hide#comment-51561</guid>
		<description>ok, im looking for learn jQuey, this example i thinks is nice, but....dont said nothing about call the js form the buttons....

im loss

thanks</description>
		<content:encoded><![CDATA[<p>ok, im looking for learn jQuey, this example i thinks is nice, but&#8230;.dont said nothing about call the js form the buttons&#8230;.</p>
<p>im loss</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2006/09/basic-show-and-hide/comment-page-1#comment-49240</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Wed, 11 Jun 2008 21:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/09/basic-show-and-hide#comment-49240</guid>
		<description>Hi Rob,

One option might be to include a print stylesheet that explicitly sets the display property of all those elements to block. you might need to use !important as well. Haven't tried it, but hopefully that leads you in the right direction.</description>
		<content:encoded><![CDATA[<p>Hi Rob,</p>
<p>One option might be to include a print stylesheet that explicitly sets the display property of all those elements to block. you might need to use !important as well. Haven&#8217;t tried it, but hopefully that leads you in the right direction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.learningjquery.com/2006/09/basic-show-and-hide/comment-page-1#comment-49238</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Wed, 11 Jun 2008 20:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/09/basic-show-and-hide#comment-49238</guid>
		<description>Hi,

I really like the script. I am working on a long government document and I want to be able to show and hide certain blocks of text.

Here's the problem that I have. Should someone want to print out the entire document (even the hidden parts), it seems that it cannot be done if this script is being used to show and hide stuff. If I display all the hidden parts, then it works. But what if there are 50 hidden blocks of text? This would mean I would have to display all 50 blocks before printing which the end user might not know they would have to do.

Is there anyway to write some JS that will turn this show/hide feature off whenever the page is printed.

Thanks,

Rob</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I really like the script. I am working on a long government document and I want to be able to show and hide certain blocks of text.</p>
<p>Here&#8217;s the problem that I have. Should someone want to print out the entire document (even the hidden parts), it seems that it cannot be done if this script is being used to show and hide stuff. If I display all the hidden parts, then it works. But what if there are 50 hidden blocks of text? This would mean I would have to display all 50 blocks before printing which the end user might not know they would have to do.</p>
<p>Is there anyway to write some JS that will turn this show/hide feature off whenever the page is printed.</p>
<p>Thanks,</p>
<p>Rob</p>
]]></content:encoded>
	</item>
</channel>
</rss>
