---
name: "up.form.submitButtons"
area: "API"
kind: "JavaScript function"
parent: "up.form module"
visibility: "experimental"
url: "https://unpoly.com/api/up.form.submitButtons"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.form module](https://unpoly.com/api/up.form.md)</nav>

# up.form.submitButtons(root)

**This feature is experimental**. Please [share](https://github.com/unpoly/unpoly/discussions) 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`](https://unpoly.com/api/up.form.config.md#config.submitButtonSelectors) array.

Buttons in another [layer](https://unpoly.com/api/up.layer.md) and buttons that are being [destroyed](https://unpoly.com/api/up.destroy.md) are ignored.

---

## Parameters {#parameters}

### root {#root}

(required)

The element to scan for contained submit buttons.

Type: [Element](https://developer.mozilla.org/en-US/docs/Web/API/Element) | [jQuery](https://learn.jquery.com/using-jquery-core/jquery-object/)

---

## Return value {#return-value}

The list of found submit buttons.

Type: [List](https://unpoly.com/api/List.md)<[Element](https://developer.mozilla.org/en-US/docs/Web/API/Element)>

