Gray out submit button

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?
petewinterAsked:
Who is Participating?
 
roynaufalConnect With a Mentor Commented:
add this to it:
<input type='submit' onclick="this.disabled=1; this.value='Please wait...'; this.form.submit();">
0
 
Carl TawnConnect With a Mentor Systems and Integration DeveloperCommented:
Something like:
      <input type="submit" onclick="this.value='Please Wait';this.disabled=true;" />

Open in new window

0
 
petewinterAuthor Commented:
Many Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.