 |
Using JavaScript to reset or clear a form
Using an HTML ‘Reset’ button is an easy way to reset all form fields to their default values. For instance, the code snippet below shows an field of type “reset”, which on being clicked resets all the form fields:
www.javascript-coder.com |
 |