After the user has entered all the correct data, the final step is to submit that data. Since you can't navigate an app in the traditional sense, one way you can submit the form contents is to use XMLHttpRequest (XHR). Using the new FormData object, you can wrap form content in a way that the XHR object can use to send to your server.

The example here uses an event handler for the submit event. On the submit event, it creates a new FormData object with the form content and then sends that to the server using XMLHttpRequest.

Registration
How did you learn about our site?


Form submitted.