Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to disable submit button once it's clicked....???

Posted on 2006-11-20
2
822 Views
Last Modified: 2008-11-22
I'd like to disable the submit button for my forms once it's pressed to avoid problems when the user double clicks it or gets impatient and clicks again after waiting a moment.

Any information I can get on this would be greatly appreciated.  Thanks!
0
Comment
Question by:Andrew Angell
2 Comments
 
LVL 30

Accepted Solution

by:
callrs earned 500 total points
ID: 17982569
<form target="_blank">
<input  type=submit onclick="this.disabled=true">
</form>
0
 
LVL 11

Author Comment

by:Andrew Angell
ID: 17983063
well that was amazingly easy.  thanks!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JS does not refresh 6 30
alert(innerHTML); 8 32
check a checkbox of a checkboxes group in bootstrap 2 40
Button on Table, name table1 not working 4 20
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
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 …
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…

839 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