How do you reset the form?

Posted by Jennifer | Updated on

How do you reset the form?

In a model-driven form, you can reset the form just by calling the function reset() on our form model. For example, you can reset the form model on submission as follows:

Now, your form model resets the form back to its original pristine state.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers