The ID of the form that the input belongs to. This property is used to associate the input with its parent form.
The name attribute of the input element. This property is used to identify the input in the serialized data.
Optional
valueThe current value of the input element. This property is used to store the input's data. It is optional because some input types (like submit or reset) don't have a value.
Represents a serialized output from a form.
This interface is used to structure the data obtained from a form when it is serialized. Serialization is the process of converting the state of an object into a format that can be stored or transmitted and reconstructed later.
Example