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

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Disable and Enable a Submit Button" Watch "Disable and Enable a Submit Button" New topic

Disable and Enable a Submit Button

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 482
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.
I agree. Here's the link:
subject: Disable and Enable a Submit Button