Edit this page

up.Params up.Params.prototype.addField(field)
Class method

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

Adds params from the given HTML form field.

The added params will include exactly those form values that would be included for the given field in a regular form submission. If the 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

field ElementorjQuery