FormData
The FormData
interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the Window/fetch, XMLHttpRequest.send() or navigator.sendBeacon() methods.
Functions
The append()
method of the FormData interface appends a new value onto an existing key inside a FormData
object, or adds the key if it does not already exist.
The get()
method of the FormData interface returns the first value associated with a given key from within a FormData
object.
The getAll()
method of the FormData interface returns all the values associated with a given key from within a FormData
object.
The set()
method of the FormData interface sets a new value for an existing key inside a FormData
object, or adds the key/value if it does not already exist.