Example

Select all input elements:

$(":input")

Try it yourself »

Definition and Usage

The :input selector selects form elements.

This selector also works with the button element.

Syntax

$(":input")