jQuery :input 選擇器

實例

選擇所有 <input> 元素:

$(":input")

親自試一試

定義和用法

:input 選擇器選取表單元素。

該選擇器同樣適用于 <button> 元素。

語法

$(":input")