Edit this page

up.Params up.Params.fromFields(fields)
Class method

This feature is experimental. It may be changed or removed in a future version.

Constructs a new up.Params instance from one or more HTML form field.

The constructed up.Params will include exactly those form values that would be included for the given fields in a regular form submission. If a given field wouldn't submit a value (like an unchecked <input type="checkbox">, nothing will be added.

See up.Params.fromForm() for more details and examples.


Parameters

fields ElementorList<Element>orjQuery

Return value