up.form up.form.submitButtons(root)
JavaScript function

This feature is experimental. Please share your experiences so we know what to keep or change.

Returns a list of submit buttons within the given element.

You can configure what Unpoly considers a submit button by adding CSS selectors to the up.form.config.submitButtonSelectors array.

Buttons in another layer and buttons that are being destroyed are ignored.


Parameters

root
required

The element to scan for contained submit buttons.

Type: Element | jQuery

Return value

The list of found submit buttons.

Type: List<Element>