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 &lt;form&gt;, you can populate the FormData instance by passing the form into the FormData constructor. Suppose our HTML declares a &lt;form&gt; element: &lt;form id="userinfo"&gt; &lt;div&gt; &lt;label for="username"&gt;Enter your name:&lt;/label&gt; &lt;input type="text" id="username" name="username" value="Dominic" /&gt; &lt...