1,234
edits
Changes
→Lab
Write a JavaScript function that will be executed when the user clicks the submit button. That function should create a JSON object from all the fields (filled-in or not) on the page; then use JSON.stringify() to print your variable just below the form (do not use an alert).
This is a sketch to quickly give you an idea of what it should look like:
[[Image:lab6.png]]