I have a form that uses the "hidden submit button" technique. Whereas, the visible Submit button is a regular button that performs some addt'l validation before exec'ing the click event on a real, hidden submit button.
What I would like to do is to disable the visible submit button in it's click event to keep the user from inadvertently pressing it again while the POST is in progress. I can do that easy enough but what I also need to do is re-enable it if the regular submit button interrupts the submit operation due to a validation failure (e.g. required field empty, etc.) That's where the complication comes in at in that I haven't found a way to detect a submission interruption.
Anyone successfully done anything similar ?
Thanks