jQuery :submit Selector

Example

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

$(':submit')

Try It Yourself

Definition and Usage

:submit selector selects <button> and <input> elements of type submit.

If the <button> element does not define a type, most browsers will treat the element as a button of type submit.

Syntax

$(':submit')

Tips and Comments

Tip:Using the selector input:submit will not select <button> elements.