Solved

Gray out submit button

Posted on 2010-11-28
3
654 Views
Last Modified: 2012-08-14
How can I get a form submit button to gray out once clicked and change to read "Please Wait" to stop a user clicking twice?
0
Comment
Question by:petewinter
3 Comments
 
LVL 3

Accepted Solution

by:
roynaufal earned 250 total points
ID: 34225008
add this to it:
<input type='submit' onclick="this.disabled=1; this.value='Please wait...'; this.form.submit();">
0
 
LVL 52

Assisted Solution

by:Carl Tawn
Carl Tawn earned 250 total points
ID: 34225014
Something like:
      <input type="submit" onclick="this.value='Please Wait';this.disabled=true;" />

Open in new window

0
 

Author Closing Comment

by:petewinter
ID: 34225088
Many Thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now