Author Topic: Javascript: How to disable Submit button after submitting  (Read 10772 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?

Just make posts in this community and win .com / .org / .net domain name free.
Know more..
Join Now!