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

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

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

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
required
Type: Element | List<Element> | jQuery

Return value

Type: up.Params