jQuery :textSelector

jQuery 选择器jQuery Selectors

Examples

Select the <input> element with type="text":

$(":text")

Try it Yourself »

Definition and Usage

The :text selector selects input elements with type=text.


Syntax

$(":text")


jQuery 选择器jQuery Selectors

Other Extensions