Tutorials References Exercises Videos Menu
Create Website Get Certified Upgrade

jQuery :button Selector

❮ jQuery Selectors

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.

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


❮ jQuery Selectors