aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Disable and Enable a Submit Button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Disable and Enable a Submit Button" Watch "Disable and Enable a Submit Button" New topic
Author

Disable and Enable a Submit Button

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Hi All,

I have a problem with an application that the user may click twice on the submit button and the request goes to the back-end twice. I would like to prevent it by disabling the Submit button after the first click.



But the situation is... There are other JavaScript validations running of some of the fields of the JSP, and when one of them fail, i have to enable the button again, so that the user can correct the field and then submit again. Could you please help me out with this. Google didn't help much.
 
 
subject: Disable and Enable a Submit Button