<?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: .parent()</title>
	<atom:link href="http://api.jquery.com/parent/feed/" rel="self" type="application/rss+xml" />
	<link>http://api.jquery.com/parent/</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: Ian</title>
		<link>http://api.jquery.com/parent/comment-page-1/#comment-8651</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Thu, 27 Jan 2011 05:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=317#comment-8651</guid>
		<description>This is 7 months old however someone else might need the answer. Here is an easier way:&lt;br&gt;&lt;br&gt;$(&#039;#myelementid&#039;, parent.document).append();</description>
		<content:encoded><![CDATA[<p>This is 7 months old however someone else might need the answer. Here is an easier way:</p>
<p>$(&#39;#myelementid&#39;, parent.document).append();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nyuszika7H</title>
		<link>http://api.jquery.com/parent/comment-page-1/#comment-8110</link>
		<dc:creator>Nyuszika7H</dc:creator>
		<pubDate>Tue, 04 Jan 2011 17:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=317#comment-8110</guid>
		<description>Thanks so much! I learn a new thing every day. Today, I&#039;ve learned the .parents() jQuery function.</description>
		<content:encoded><![CDATA[<p>Thanks so much! I learn a new thing every day. Today, I&#39;ve learned the .parents() jQuery function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dsf</title>
		<link>http://api.jquery.com/parent/comment-page-1/#comment-7454</link>
		<dc:creator>Dsf</dc:creator>
		<pubDate>Thu, 09 Dec 2010 10:23:46 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=317#comment-7454</guid>
		<description>dfgdf</description>
		<content:encoded><![CDATA[<p>dfgdf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dugokontov</title>
		<link>http://api.jquery.com/parent/comment-page-1/#comment-7406</link>
		<dc:creator>dugokontov</dc:creator>
		<pubDate>Tue, 07 Dec 2010 10:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=317#comment-7406</guid>
		<description>the .parents() instead of .parent() will do the trick</description>
		<content:encoded><![CDATA[<p>the .parents() instead of .parent() will do the trick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dugokontov</title>
		<link>http://api.jquery.com/parent/comment-page-1/#comment-7408</link>
		<dc:creator>dugokontov</dc:creator>
		<pubDate>Tue, 07 Dec 2010 10:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=317#comment-7408</guid>
		<description>My bad... You are absolutely right... didn&#039;t notice difference between parent() and parents().&lt;br&gt;&lt;br&gt;Removing my post for false info (;</description>
		<content:encoded><![CDATA[<p>My bad&#8230; You are absolutely right&#8230; didn&#39;t notice difference between parent() and parents().</p>
<p>Removing my post for false info (;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: loubregand</title>
		<link>http://api.jquery.com/parent/comment-page-1/#comment-7405</link>
		<dc:creator>loubregand</dc:creator>
		<pubDate>Tue, 07 Dec 2010 10:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=317#comment-7405</guid>
		<description>I&#039;d like to add, your code has a flaw: parent(&#039;.class-name&#039;) does not return the first parent which matches the selector, but will return the actual first-level parent of the current element only if it matches that selector. So, direct parent, or nothing at all.</description>
		<content:encoded><![CDATA[<p>I&#39;d like to add, your code has a flaw: parent(&#39;.class-name&#39;) does not return the first parent which matches the selector, but will return the actual first-level parent of the current element only if it matches that selector. So, direct parent, or nothing at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: loubregand</title>
		<link>http://api.jquery.com/parent/comment-page-1/#comment-7407</link>
		<dc:creator>loubregand</dc:creator>
		<pubDate>Tue, 07 Dec 2010 10:42:28 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=317#comment-7407</guid>
		<description>I think you should read documentation for method parents(): &lt;a href=&quot;http://api.jquery.com/parents&quot; rel=&quot;nofollow&quot;&gt;http://api.jquery.com/parents&lt;/a&gt;/&lt;br&gt;Practically, it returns all the ancestors for the elements previously selected, in this case, it return ancestors (parent, parent of the parent, hos parent and so on until root node) of the &#039;this&#039; element. Eq allow us to filter this chain of ancestors based on distance from the this node, so $(this).ancestors().eq(2) is the ancestor of distance 2, that is, the parent of the parent of the &#039;this&#039; element.</description>
		<content:encoded><![CDATA[<p>I think you should read documentation for method parents(): <a href="http://api.jquery.com/parents" rel="nofollow">http://api.jquery.com/parents</a>/<br />Practically, it returns all the ancestors for the elements previously selected, in this case, it return ancestors (parent, parent of the parent, hos parent and so on until root node) of the &#39;this&#39; element. Eq allow us to filter this chain of ancestors based on distance from the this node, so $(this).ancestors().eq(2) is the ancestor of distance 2, that is, the parent of the parent of the &#39;this&#39; element.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dugokontov</title>
		<link>http://api.jquery.com/parent/comment-page-1/#comment-7404</link>
		<dc:creator>dugokontov</dc:creator>
		<pubDate>Tue, 07 Dec 2010 10:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=317#comment-7404</guid>
		<description>- Removing my post for false info - (;</description>
		<content:encoded><![CDATA[<p>- Removing my post for false info &#8211; (;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spyros Hajisavvas</title>
		<link>http://api.jquery.com/parent/comment-page-1/#comment-4765</link>
		<dc:creator>Spyros Hajisavvas</dc:creator>
		<pubDate>Sun, 08 Aug 2010 22:12:38 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=317#comment-4765</guid>
		<description>If you could add an ID to the parent element there wouldn&#039;t really be a reason for you to use .parents as they are unique and you&#039;d use the selector, for classes though it may turn out to be quite useful.</description>
		<content:encoded><![CDATA[<p>If you could add an ID to the parent element there wouldn&#39;t really be a reason for you to use .parents as they are unique and you&#39;d use the selector, for classes though it may turn out to be quite useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hudin</title>
		<link>http://api.jquery.com/parent/comment-page-1/#comment-4568</link>
		<dc:creator>hudin</dc:creator>
		<pubDate>Mon, 28 Jun 2010 18:58:07 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=317#comment-4568</guid>
		<description>What about if you want an element in the parent frame holding an iframe?  I&#039;ve been using parent.document.getElementById()  Is there a faster or more direct method?</description>
		<content:encoded><![CDATA[<p>What about if you want an element in the parent frame holding an iframe?  I&#39;ve been using parent.document.getElementById()  Is there a faster or more direct method?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

