Edit this page

up.form up.form.fields(root)
JavaScript function

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

Returns a list of form fields within the given element.

You can configure what Unpoly considers a form field by adding CSS selectors to the up.form.config.fieldSelectors array.

If the given element is itself a form field, a list of that given element is returned.

Parameters

root ElementorjQuery

The element to scan for contained form fields. If the element is itself a form field, a list of that element is returned.

Return value

This website uses cookies to improve usability and analyze traffic.
I accept or learn more