SyntaxFix
Write A Post
Hire A Developer
Questions
Use the reset function, which is available on the form element.
var form = document.getElementById("myForm"); form.reset();