Edit this page

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

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

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