posted 18 years ago
I have a onsubmit() function in form tag for validating the required fields and I also have a onclick() function on the submit button for disable the button. How to stop the onclick function running when the validation function find the some required fields are empty ?
I have a problem that when user submit the form, the onsibmit function finds that some fields have not filled, and then the onclick function disable the button ! So that user cannot re-submit the request.
Thanks