GoConqr has a new look! Let us know what you think.

Module 3 of 33 · Media

Reset and Submit

Kostas Diakogiannis

Reset and Submit

The Form events

The Form element can have many events attached, but for now we are going to focus to the two main ones. The submit event and the reset event.

The Submit event. This is the final action a form takes, and the purpose of the form itself. To submit, or send the data that the form is comprised of to a specific destination.This destination will grab the data and will do something with it. The default behavior after the sending of data, is to reset the form and reload the page. The 'How' and the 'Where' are two questions that will be answered later.

The Reset event. This action can be taken any time before submit and restores the data of each input field of a form to it's initial state. It doesn't submit, it just starts over. Reset can be heavily used on a click of a button in order to clear all the fields of the form from any data before submitting. After submitting all the fields are cleared, which is a part of the form's submit event's default behavior.

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?