NameSilo

Submit Button

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You could use javascript to do that probably with an onclick action I would think.
 
0
Close
Code:
<input name="upload" type="submit" value="Upload!" onclick="this.value='Please Wait...';this.disabled=true;" />
 
0
Close
Perfect Jim!
 
0
Close
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
Close
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
Close
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
Close
Jim's should work, worked with his FFH script :)
 
0
Close
hmf. Too lazy to use it now. Thanks you all. I used the FFH script. Nice script. I got a headache. Ak.
 
0
Close
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
Close
CatchedCatched

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back