Edit this page

up.form up.form.isField(element)
JavaScript function

Returns whether the given element is a form field, such as input or select.

To configure what Unpoly considers a form field, use up.form.config.fieldSelectors.


Parameters

element Element

The element to check.

Return value

boolean

Whether the given element is a form field.