Class: FormDataDeep

FormDataDeep.FormDataDeep(form, primitives)

Convenience class to have a similar interface to FormData

Constructor

new FormDataDeep(form, primitives)

Get form data as an object, including nested forms.

Parameters:
Name Type Default Description
form HTMLFormElement | Object

the root form element, or a JSON Object containing form data.

primitives Boolean false

whether to convert string values to primitives. Defaults false.

Source:

Methods

apply(form)

Applies the values in this object to the target form.

Parameters:
Name Type Description
form HTMLFormElement
Source: