Brock Angelo
How to Reset a Form Using Javascript
How to Reset a Form Using Javascript
<form> <input type="button" onclick="document.forms[0].reset()" value="Reset This Form"> </form>
It doesn’t clear the data, it just resets all form values to their original value. Here’s a demo:




