Edit this page

up.form up.autosubmit(target, [options])
JavaScript function

Automatically submits a form when a field changes.

The unobtrusive variant of this is the [up-autosubmit] attribute.


Parameters

target stringorElementorjQuery

The field or form to watch.

[options] Object optional

See options for up.watch().

Return value

Function()

A destructor function that stops auto-submitting when called.

Auto-submitting will stop automatically when the observed fields are removed from the DOM.