Selecting from elements using filters (Should know)

jQuery has filters that make it easy to select form elements. This section will explain how many, and what are the filters to select those elements.

Getting ready

The filters belonging to this category are as follows:

Name

Description

:button

Selects all of the button elements and input elements of type button.

:checkbox

Selects all of the elements of type checkbox.

:checked

Selects all of the input elements that are and select elements that are selected.

:disabled

Selects all of the elements that are disabled.

:enabled

Selects all of the elements that are enabled.

:file

Selects all of the elements of type file.

:image

Selects all of the elements of type image.

Get Instant JQuery Selectors now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.