<?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: .parents()</title>
	<atom:link href="http://api.jquery.com/parents/feed/" rel="self" type="application/rss+xml" />
	<link>http://api.jquery.com/parents/</link>
	<description>jQuery API Reference</description>
	<lastBuildDate>Fri, 19 Aug 2011 09:06:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Snail</title>
		<link>http://api.jquery.com/parents/comment-page-1/#comment-8040</link>
		<dc:creator>Snail</dc:creator>
		<pubDate>Wed, 29 Dec 2010 16:15:02 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=321#comment-8040</guid>
		<description>When you use parents() on an element in iframe, the iframe is not in parents list.</description>
		<content:encoded><![CDATA[<p>When you use parents() on an element in iframe, the iframe is not in parents list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Snail</title>
		<link>http://api.jquery.com/parents/comment-page-1/#comment-7826</link>
		<dc:creator>Snail</dc:creator>
		<pubDate>Wed, 29 Dec 2010 08:15:02 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=321#comment-7826</guid>
		<description>When you use parents() on an element in iframe, the iframe is not in parents list.</description>
		<content:encoded><![CDATA[<p>When you use parents() on an element in iframe, the iframe is not in parents list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: d.u.a.l</title>
		<link>http://api.jquery.com/parents/comment-page-1/#comment-7649</link>
		<dc:creator>d.u.a.l</dc:creator>
		<pubDate>Sat, 18 Dec 2010 06:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=321#comment-7649</guid>
		<description>like somebody said before, closest is your choice</description>
		<content:encoded><![CDATA[<p>like somebody said before, closest is your choice</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Crabtree</title>
		<link>http://api.jquery.com/parents/comment-page-1/#comment-7266</link>
		<dc:creator>Adam Crabtree</dc:creator>
		<pubDate>Mon, 29 Nov 2010 12:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=321#comment-7266</guid>
		<description>.closest(), &lt;a href=&quot;http://api.jquery.com/closest&quot; rel=&quot;nofollow&quot;&gt;http://api.jquery.com/closest&lt;/a&gt;/, is what you want.</description>
		<content:encoded><![CDATA[<p>.closest(), <a href="http://api.jquery.com/closest" rel="nofollow">http://api.jquery.com/closest</a>/, is what you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonio Trapani</title>
		<link>http://api.jquery.com/parents/comment-page-1/#comment-7250</link>
		<dc:creator>Antonio Trapani</dc:creator>
		<pubDate>Sat, 27 Nov 2010 07:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=321#comment-7250</guid>
		<description>Just read .closest() documentation, it comes in 1.3. Thanks</description>
		<content:encoded><![CDATA[<p>Just read .closest() documentation, it comes in 1.3. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://api.jquery.com/parents/comment-page-1/#comment-7244</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Sat, 27 Nov 2010 01:41:49 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=321#comment-7244</guid>
		<description>No, unfortunately, .parents() will still traverse to the root element. You could use .closest(), but keep in mind that it starts with the element(s) in the jQuery set rather than with the parent element(s).</description>
		<content:encoded><![CDATA[<p>No, unfortunately, .parents() will still traverse to the root element. You could use .closest(), but keep in mind that it starts with the element(s) in the jQuery set rather than with the parent element(s).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonio Trapani</title>
		<link>http://api.jquery.com/parents/comment-page-1/#comment-7130</link>
		<dc:creator>Antonio Trapani</dc:creator>
		<pubDate>Mon, 22 Nov 2010 06:33:56 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=321#comment-7130</guid>
		<description>I was wondering how I can stop the parents(selector) method after the first occurrence of the selector is found... then I realized that using the pseudo-selector :first could help. Am I right? Does parents(selector:first) stops after the first element is found, without traversing the DOM up to the root element?</description>
		<content:encoded><![CDATA[<p>I was wondering how I can stop the parents(selector) method after the first occurrence of the selector is found&#8230; then I realized that using the pseudo-selector :first could help. Am I right? Does parents(selector:first) stops after the first element is found, without traversing the DOM up to the root element?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://api.jquery.com/parents/comment-page-1/#comment-6080</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Fri, 01 Oct 2010 23:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=321#comment-6080</guid>
		<description>It traverses up to the root element and filters the result.</description>
		<content:encoded><![CDATA[<p>It traverses up to the root element and filters the result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gene</title>
		<link>http://api.jquery.com/parents/comment-page-1/#comment-12459</link>
		<dc:creator>Gene</dc:creator>
		<pubDate>Thu, 30 Sep 2010 07:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=321#comment-12459</guid>
		<description>What about using $(this).parents(&#039;.second-level-parent:eq(0)&#039;); ?  Is jQuery smart enough to stop after the first one, or does it still traverse the entire tree and then filter the results?</description>
		<content:encoded><![CDATA[<p>What about using $(this).parents(&#8216;.second-level-parent:eq(0)&#8217;); ?  Is jQuery smart enough to stop after the first one, or does it still traverse the entire tree and then filter the results?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://api.jquery.com/parents/comment-page-1/#comment-5553</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Sun, 29 Aug 2010 15:04:42 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=321#comment-5553</guid>
		<description>I assume you meant to compare $(this).parent().parent() to $(this).parents(&#039;.second-level-parent&#039;). Note the &quot;s&quot; in the second. It depends on how deeply nested your elements are. .parents() will traverse all the way up the DOM to the root element (typically &lt;html&gt;) and check for a match (if you&#039;ve provided a filter) on each element. So it&#039;s potentially, but not necessarily, much slower.</description>
		<content:encoded><![CDATA[<p>I assume you meant to compare $(this).parent().parent() to $(this).parents(&#39;.second-level-parent&#39;). Note the &#8220;s&#8221; in the second. It depends on how deeply nested your elements are. .parents() will traverse all the way up the DOM to the root element (typically &lt;html&gt;) and check for a match (if you&#39;ve provided a filter) on each element. So it&#39;s potentially, but not necessarily, much slower.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

