Multiple form submission is one of the issues that a webmaster face during his development.So instead of writing a hardcore code in the server side.We can just validate a multiple submission using simple client side Jquery.
Consider we have this HTML form in our code:
<form id="check" action="someUrl.php" method="get"> <input name="username" /> <!-- some more form fields --> <input id="submit" type="submit" /> </form>
Here is a jQuery code that disables submit button on form submission:
$('#check').submit(function(){
$('input[type=submit]', this).attr('disabled', 'disabled');
});
The above jQuery code binds a submit event to our #check form, then finds its submit button and disables it.
Disable submit button on form submission for all forms on your page.
// Find ALL <form> tags on your page
$('form').submit(function(){
// On submit disable its submit button
$('input[type=submit]', this).attr('disabled', 'disabled');
});
Thanks HOW TO JQUERY
Incoming search terms:
- tea infuser inurl:/register intext:upcoming intext:published intext:submit -inurl: php (15)
- www mistonline in (13)
- xerox inurl:/guestbook html (11)
- empirically inurl:/form php (10)
- inurl:/guestbook php?mode= all over (9)
- they inurl:/submit php (9)
- custodial inurl:/submit php (6)
- jquery sumbit button (6)
- inurl:/guestbook php?form= medium (6)
- 10 commandments inurl:/guestbook php (6)
- desert outpost defense inurl:/details php?image_id= (6)
- argued inurl:;action=display;num= (5)
- complete inurl:/guestbook html (5)
- jquery :not(:submit):not(:button) (5)
- airwave inurl:/guestbook cfm (5)
- tina inurl:/guestbook php?form= (5)
- ie jquery submit (5)
- adhere /guestbook php?form= (5)
- added inurl:/guestbook php?action= (5)
- just inurl:/guestbook php?new_message= (4)
- 53×11 cycling store inurl:/register intext:upcoming intext:published intext:submit -inurl: php (4)
- based inurl:/guestbook php? (4)
- /guestbook php?page= add message (4)
- abscisse inurl:/guestbook php?act= (4)
- 4709 e colt dr eloy az inurl:/register intext:upcoming intext:published intext:submit -inurl: php (4)
- applicable inurl:/guestbook php?form= (4)
- aleshot inurl:/register intext:upcoming intext:published intext:submit -inurl: php (4)
- check inurl:/submit php (3)
- jquery submit disabled (3)
- samsung inurl:/submit php (3)
- date inurl:/guestbook php?form= (3)
- exist inurl:/form php (3)
- ticker inurl:/register intext:upcoming intext:published intext:submit -inurl: php (3)
- handful inurl:/submission-policy/ (3)
- jquery disable page when submit IE (2)
- actions inurl:/register intext:upcoming intext:published intext:submit -inurl: php (2)
- how to disable submit button html (2)
- jQuery rating server side submission (2)
- inurl:/posting php?mode= globalization culture (2)
- inurl:/register intext:upcoming intext:published intext:submit -inurl: php acertou (2)
You will also be interested in ,
- Give a welcome alert message to your visitors using javascript
- Change first letter of each word in a form field from lowercase to uppercase
- Changing the image by dynamically changing the image source using javascript
- Javascript Alert Message Box When Clicking A Link
- Close Event In Javascript Using OnUnload()
- Find screen resolution and redirect the user using javascript
- Simple message slideshow news ticker using javascript
- How to close a child window from a parent window using javascript
- Drop down menu going behind flash element
- Buzzing or vibrating the login form using jquery

