NameSilo

Submit Button

SpaceshipSpaceship
Watch

snike

Established Member
Impact
3
How can i make a submit button that changes text when u click it.

Example: It says Submit Before upload .
When you click it..it says "Please wait for upload"
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
You could use javascript to do that probably with an onclick action I would think.
 
0
•••
Code:
<input name="upload" type="submit" value="Upload!" onclick="this.value='Please Wait...';this.disabled=true;" />
 
0
•••
Perfect Jim!
 
0
•••
The code does not work. Well it does but when I click Submit it it says Please Wait and does nothing at all....

<input name="upload" type="submit" value="Upload!" onclick="this.value='Please Wait...';this.disabled=true;" />

^^^That is the code^^^^^
 
0
•••
Should still work. :\

Try this.
Make your <form> tag look like this:

<form action="whatever" name="test" method="post">

and have the button's code be this:

<input name="upload" type="submit" value="Upload!" onclick="this.value='Please Wait...';this.disabled=true;document.test.submit();" />
 
0
•••
I have the same issue with Opera. It works with Netscape.
However if I remove
this.disabled=true;
it's OK.
I assume the form may not be submitted because the submit button has just been disabled ;)
 
0
•••
Jim's should work, worked with his FFH script :)
 
0
•••
hmf. Too lazy to use it now. Thanks you all. I used the FFH script. Nice script. I got a headache. Ak.
 
0
•••
snike said:
hmf. Too lazy to use it now. Thanks you all. I used the FFH script. Nice script. I got a headache. Ak.

If you need more help with that I may be able to get it working for you :)
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back