FormData methods in JavaScript
So FormData
obtains the form data
in an ordered way. This is usually needed
to send this data to a server using
JavaScript. At the same time,
FormData
has special methods
that allow you to retrieve and modify
form data.
These methods are the same as in
:
,
get
set
, has
, append
,
delete
, getAll
Modify the previous task. After getting the form data, add another key-value pair to that data and remove one of the existing pairs.