Forum Moderators: open
The problem is -- you don't want to reset the form until the data has been submitted, or else the submission will be screwed up. And, when the data has been submitted, the page is redirected anyway (which means there is no need for resetting of data anyway).
Otherwise, just call the
reset() function on the form. document.myForm.reset()
OR
document.getElementById('myform').reset()