Skip to content

Commit 9eba58d

Browse files
committed
Merge pull request #29 from jmm/jmm/parent/links
Linked .parents() mention.
2 parents fb6a1fe + 02c5b26 commit 9eba58d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/parent.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</signature>
88
<desc>Get the parent of each element in the current set of matched elements, optionally filtered by a selector.</desc>
99
<longdesc>
10-
<p>Given a jQuery object that represents a set of DOM elements, the <code>.parent()</code> method allows us to search through the parents of these elements in the DOM tree and construct a new jQuery object from the matching elements. The <code>.parents()</code> and <code>.parent()</code> methods are similar, except that the latter only travels a single level up the DOM tree.</p>
10+
<p>Given a jQuery object that represents a set of DOM elements, the <code>.parent()</code> method allows us to search through the parents of these elements in the DOM tree and construct a new jQuery object from the matching elements. The <a href="/parents/"><code>.parents()</code></a> and <code>.parent()</code> methods are similar, except that the latter only travels a single level up the DOM tree.</p>
1111
<p>The method optionally accepts a selector expression of the same type that we can pass to the <code>$()</code> function. If the selector is supplied, the elements will be filtered by testing whether they match it.</p>
1212
<p>Consider a page with a basic nested list on it:</p>
1313
<pre>

0 commit comments

Comments
 (0)