Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed (UPI) Chapter 10: Utilizing Forms with JavaScript!
Instruction
Associating a FormData Object and a <form>
If the data you're submitting is really coming from a <form>, you can populate the FormData instance by passing the form into the FormData constructor.
Suppose our HTML declares a <form> element:
<form id="userinfo">
<div>
<label for="username">Enter your name:</label>
<input type="text" id="username" name="username" value="Dominic" />
</div>
<div>
<la...