jQuery :buttonSelector

jQuery 选择器jQuery Selectors

Examples

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

$(":button")

Try it Yourself »

Definition and Usage

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

Tip:Using input:button through this selector will not select button elements.


jQuery 选择器jQuery Selectors

Other Extensions