<?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: jQuery check for element visibility</title>
	<atom:link href="/2009/07/08/jquery-check-for-element-visibility/feed/" rel="self" type="application/rss+xml" />
	<link>/2009/07/08/jquery-check-for-element-visibility/</link>
	<description>on web development</description>
	<lastBuildDate>Fri, 26 Oct 2018 21:40:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>By: mutombo4</title>
		<link>/2009/07/08/jquery-check-for-element-visibility/comment-page-1/#comment-17437</link>
		<dc:creator><![CDATA[mutombo4]]></dc:creator>
		<pubDate>Tue, 27 Nov 2012 10:57:51 +0000</pubDate>
		<guid isPermaLink="false">/?p=661#comment-17437</guid>
		<description><![CDATA[thx! this is it, what i was looking for]]></description>
		<content:encoded><![CDATA[<p>thx! this is it, what i was looking for</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>/2009/07/08/jquery-check-for-element-visibility/comment-page-1/#comment-15881</link>
		<dc:creator><![CDATA[Peter]]></dc:creator>
		<pubDate>Thu, 24 May 2012 18:19:04 +0000</pubDate>
		<guid isPermaLink="false">/?p=661#comment-15881</guid>
		<description><![CDATA[You always might do as it:
if( $(&#039;#foo&#039;).is(&#039;:visible&#039;) ) {
  // it&#039;s hidden, do something
}
else {
  // it&#039;s not hidden so do something else
}]]></description>
		<content:encoded><![CDATA[<p>You always might do as it:<br />
if( $(&#8216;#foo&#8217;).is(&#8216;:visible&#8217;) ) {<br />
  // it&#8217;s hidden, do something<br />
}<br />
else {<br />
  // it&#8217;s not hidden so do something else<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Melanie Cowherd</title>
		<link>/2009/07/08/jquery-check-for-element-visibility/comment-page-1/#comment-14271</link>
		<dc:creator><![CDATA[Melanie Cowherd]]></dc:creator>
		<pubDate>Tue, 26 Apr 2011 05:20:44 +0000</pubDate>
		<guid isPermaLink="false">/?p=661#comment-14271</guid>
		<description><![CDATA[indeed]]></description>
		<content:encoded><![CDATA[<p>indeed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankur Dalal</title>
		<link>/2009/07/08/jquery-check-for-element-visibility/comment-page-1/#comment-14233</link>
		<dc:creator><![CDATA[Ankur Dalal]]></dc:creator>
		<pubDate>Wed, 06 Apr 2011 07:01:28 +0000</pubDate>
		<guid isPermaLink="false">/?p=661#comment-14233</guid>
		<description><![CDATA[Following have some options for check visibility. 
&lt;pre lang=&quot;javascript&quot;&gt;
if( $(&#039;#foo&#039;).is(&#039;:visible&#039;) ) {
  // it&#039;s visible, do something
}
else {
  // it&#039;s not visible so do something else
}
&lt;/pre&gt;

Check if an element is hidden
&lt;pre lang=&quot;javascript&quot;&gt;
if( $(&#039;#foo&#039;).is(&#039;:hidden&#039;) ) {
  // it&#039;s hidden, do something
}
else {
  // it&#039;s not hidden so do something else
}
&lt;/pre&gt;

Looping though visible elements

	    abc
	    def
	    ghi

To loop through the visible divs under #foo do something do this:
&lt;pre lang=&quot;javascript&quot;&gt;
$(&quot;#foo div:visible&quot;).each( function() {
	    document.write($(this).html()+&#039;&#039;);
});
&lt;/pre&gt;
The above example would write the following out to the document:

abc
ghi

Cheerssss !]]></description>
		<content:encoded><![CDATA[<p>Following have some options for check visibility. </p>
<pre lang="javascript">
if( $('#foo').is(':visible') ) {
  // it's visible, do something
}
else {
  // it's not visible so do something else
}
</pre>
<p>Check if an element is hidden</p>
<pre lang="javascript">
if( $('#foo').is(':hidden') ) {
  // it's hidden, do something
}
else {
  // it's not hidden so do something else
}
</pre>
<p>Looping though visible elements</p>
<p>	    abc<br />
	    def<br />
	    ghi</p>
<p>To loop through the visible divs under #foo do something do this:</p>
<pre lang="javascript">
$("#foo div:visible").each( function() {
	    document.write($(this).html()+'');
});
</pre>
<p>The above example would write the following out to the document:</p>
<p>abc<br />
ghi</p>
<p>Cheerssss !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>/2009/07/08/jquery-check-for-element-visibility/comment-page-1/#comment-14109</link>
		<dc:creator><![CDATA[Bob]]></dc:creator>
		<pubDate>Sat, 18 Dec 2010 13:49:08 +0000</pubDate>
		<guid isPermaLink="false">/?p=661#comment-14109</guid>
		<description><![CDATA[for the visibility check you can use this:
&lt;pre lang=&quot;javascript&quot;&gt;
$(element).is(&quot;:visible&quot;);
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>for the visibility check you can use this:</p>
<pre lang="javascript">
$(element).is(":visible");
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: singsong</title>
		<link>/2009/07/08/jquery-check-for-element-visibility/comment-page-1/#comment-12746</link>
		<dc:creator><![CDATA[singsong]]></dc:creator>
		<pubDate>Wed, 31 Mar 2010 15:22:05 +0000</pubDate>
		<guid isPermaLink="false">/?p=661#comment-12746</guid>
		<description><![CDATA[Nice example works perfectly]]></description>
		<content:encoded><![CDATA[<p>Nice example works perfectly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shikha</title>
		<link>/2009/07/08/jquery-check-for-element-visibility/comment-page-1/#comment-11503</link>
		<dc:creator><![CDATA[Shikha]]></dc:creator>
		<pubDate>Fri, 18 Dec 2009 12:31:37 +0000</pubDate>
		<guid isPermaLink="false">/?p=661#comment-11503</guid>
		<description><![CDATA[Fantastic code in just two lines !!! Great job]]></description>
		<content:encoded><![CDATA[<p>Fantastic code in just two lines !!! Great job</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nilima Kadam</title>
		<link>/2009/07/08/jquery-check-for-element-visibility/comment-page-1/#comment-3873</link>
		<dc:creator><![CDATA[Nilima Kadam]]></dc:creator>
		<pubDate>Wed, 22 Jul 2009 14:51:33 +0000</pubDate>
		<guid isPermaLink="false">/?p=661#comment-3873</guid>
		<description><![CDATA[Hi Good day,
  Thanks! this was really helpful &#038; simple to integrate. Thanks, keep up the good work!]]></description>
		<content:encoded><![CDATA[<p>Hi Good day,<br />
  Thanks! this was really helpful &amp; simple to integrate. Thanks, keep up the good work!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
