jQuery :submitSelector

jQuery 选择器jQuery Selectors

Examples

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

$(":submit")

Try it yourself »

Definition and Usage

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

If a button element has no defined type, most browsers will treat the element as a submit button.

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


Syntax

$(":submit")


jQuery 选择器jQuery Selectors

Other Extensions