Example

Select button elements and input elements with type="button":

$(":button")

Try it yourself »

Definition and Usage

The :button selector selects button elements, and input elements with type=button.

Syntax

$(":button")
 

Tips and Notes

Tip: Using input:button as a selector will not select the button element.