jQuery :input Selector

Example

Select all <input> elements:

$(':input')

Try It Yourself

Definition and Usage

:input selector selects form elements.

This selector also applies to <button> elements.

Syntax

$(':input')