---
name: "up.Params.fromContainer"
area: "API"
kind: "Class method"
parent: "up.Params class"
visibility: "experimental"
url: "https://unpoly.com/api/up.Params.fromContainer"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.Params class](https://unpoly.com/api/up.Params.md)</nav>

# up.Params.fromContainer(container, [options])

**This feature is experimental**. Please [share](https://github.com/unpoly/unpoly/discussions) your experiences so we know what to keep or change.

Constructs a new [`up.Params`](https://unpoly.com/api/up.Params.md) instance from the fields within the given container.

Unlike [`up.Params.fromForm()`](https://unpoly.com/api/up.Params.fromForm.md), the container may be any element. The params contain the values of all [fields](https://unpoly.com/api/up.form.fields.md) within the container, and no submit button.

---

## Parameters {#parameters}

### container {#container}

(required)

The element to scan for fields.

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

### [options.includeDisabled=false] {#options.includeDisabled}

(optional)

Whether to add fields that are disabled.

Type: boolean

---

## Return value {#return-value}

Type: [up.Params](https://unpoly.com/api/up.Params.md)

