Forum Moderators: open
I am trying to simulate using the reset button using Javascripts reset() function but I keep getting the error form.reset is not a function.
<form method="post" action="mail.php" onsubmit="return checkForm(this)" name="webform" id="webform">
document.webform.reset();
document.getElementById("webform").reset();
Thanks in advance
function resetForm() {
form.reset();
other code.......;
}