Solved

Gray out submit button

Posted on 2010-11-28
3
656 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

863 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

22 Experts available now in Live!

Get 1:1 Help Now