Validate on Submit
2. Submit Button
Join the Discussion
Your submit button might look like this:
onclick="formvalidation('myform');return false;" />
value="Submit this form"
In this instance we don't need the return false on the end of the onclick as there is no subsequent processing that would be performed.
Next we will take a look at how to submit the form if it is valid.
Note that the script and the descriptions of the functions that it contains are rewritten from the "Ask Felgall" website with the permission of the copyright owner.