Skip to content

Commit 53ffa06

Browse files
committed
find(): Mention support for selectors starting with >
Fixes jquerygh-973 Closes jquerygh-1011
1 parent 9af27d6 commit 53ffa06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/find.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<desc>Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.</desc>
1919
<longdesc>
2020
<p>Given a jQuery object that represents a set of DOM elements, the <code>.find()</code> method allows us to search through the descendants of these elements in the DOM tree and construct a new jQuery object from the matching elements. The <code>.find()</code> and <code>.children()</code> methods are similar, except that the latter only travels a single level down the DOM tree.</p>
21-
<p>The first signature for the <code>.find()</code>method accepts a selector expression of the same type that we can pass to the <code>$()</code> function. The elements will be filtered by testing whether they match this selector.</p>
21+
<p>The first signature for the <code>.find()</code>method accepts a selector expression of the same type that we can pass to the <code>$()</code> function. The elements will be filtered by testing whether they match this selector. The expressions allowed include selectors like <code>&gt; p</code> which will find all the paragraphs that are children of the elements in the jQuery object.</p>
2222
<p>Consider a page with a basic nested list on it:</p>
2323
<pre><code>
2424
&lt;ul class="level-1"&gt;

0 commit comments

Comments
 (0)