...

View Full Version : Replace form submit button onsubmit



Ted8458
06-08-2010, 02:31 AM
I am wondering if it is possible for me to replace my form submit button with an animated gif (fake progress bar), after the button has been pressed.

Having so far disabled the button onclick, I would instead be happy if I could simply change the button text from 'Click here to submit' to 'Processing...'

I have done some searches here but I'm finding references to innerHTML, etc., and I'm getting lost now.

Is this an easy thing to do? TIA :thumbsup:

Dormilich
06-08-2010, 04:18 AM
if you’re using a real submit button, you immediately are sent to the page specified in the form’s action attribute …

Ted8458
06-11-2010, 01:25 PM
Thanks yeah it's a real submit button but it's for uploading files that are around 7mb and obviously it is sat there a while before the form redirects to my thank you page so people are continually clicking the button and closing the form too soon because they don't know what's happening so I would like to remove it or have it change to some other text so that they know the form is processing.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum