Edit this page

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 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