jQuery :button Selector (original) (raw)
Last Updated : 11 Jul, 2025
The **jQuery :button selector selects button elements and input elements with **type="button". The button element is not selected if we use **input=" button" as a selector.
**Syntax:
$(":button")
**Example 1: In this example, we are using jQuery: button Selector.
HTML `
jQuery :button Selector Name:Password:
Button
`
**Output:

**Example 2: In this example, we are using jQuery: button Selector.
HTML `
This is a button
`
**Output: