I want to disable a submit button after it is clicked once.Here image act as a submit button.Is there any way to swap the image and maket it diasabled or just disable it once clicked :(
Please help me in this case :cry:
I want to disable a submit button after it is clicked once.Here image act as a submit button.Is there any way to swap the image and maket it diasabled or just disable it once clicked :(
Please help me in this case :cry:
Javascript
This is a bad way to handle it. You really don't want to disable your button nor should you set the onclick to return false after the first click. In fact, this should not be handles client side but server side so that it is bulletproof and clear to the user.
What I would do is use sessions and a submission tracker on the server. I found a post that describes it pretty good:
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.aspnet/msg/559e7a853e2f72a7?hl=en&lr=&ie=UTF-8&oe=UTF-8