Skip to content

Commit 5c84fb5

Browse files
cvrebertkswedberg
authored andcommitted
:text selector: Clarify that it is for <input>s, not DOM text nodes
Closes jquerygh-587
1 parent 1d26e2a commit 5c84fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/text-selector.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<signature>
66
<added>1.0</added>
77
</signature>
8-
<desc>Selects all elements of type text.</desc>
8+
<desc>Selects all input elements of type text.</desc>
99
<longdesc>
1010
<p><code>$( ":text" )</code> allows us to select all <code>&lt;input type="text"&gt;</code> elements. As with other pseudo-class selectors (those that begin with a ":") it is recommended to precede it with a tag name or some other selector; otherwise, the universal selector ( "*" ) is implied. In other words, the bare <code>$( ":text" )</code> is equivalent to <code>$( "*:text" )</code>, so <code>$( "input:text" )</code> should be used instead. </p>
1111
<p><strong>Note:</strong> As of jQuery 1.5.2, <code>:text</code> selects <code>input</code> elements that have no specified <code>type</code> attribute (in which case <code>type="text"</code> is implied). </p>

0 commit comments

Comments
 (0)