THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

jQuery :button Selector

jQuery Selectors 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 jQuery Selectors