jQuery :text 选择器

实例

选择 type="text" 的 <input> 元素:

$(:text)

亲自试一试

定义和用法

:text 选择器选取类型为 text 的 <input> 元素。

语法

$(:text)