Author Topic: Javascript: How to disable Submit button after submitting  (Read 5996 times)

Savera

  • Full Member
  • ***
  • Posts: 159
Javascript: How to disable Submit button after submitting
« on: September 17, 2012, 07:13:09 AM »
Hi,

I want to disable submit button after user press submit once, I am facing so much trouble people submitting content twice so i think i twill be good if I disable submit button after it is being pressed for once.

Issue is that if I use onlick as like following :
<input type="submit" name="submit" value="click to submit" onclick="callSomeFunction()" />
It call function to disable but form data is not being submitted as onclick is executing before submission of data.. how do I do that I can submit data and trigger even on pressing submit too so that I can disable the button ?

 

X

Do you know?

IfandBut.com is place where you can meet serious webmasters and make new ties to grow your business.
Join Now!