I have form that I need to run validation on when it gets submitted. when creating the form I call the validation function on submit
Expand|Select|Wrap|Line Numbers
- <form name="form1" method="post" action="createFrame" onSubmit="return validateSubmit();" >
However I have a button that the user clicks to clear the fields. Afer the user clears the fields then the button text changes to "Insert" when the user clicks the button again, I call a very simple function that runs this line
document.form1.submit();
The form is submitted, but the validation doesn't run? What am I missing?