Prevent Duplicate Form Submission

Disables the submit button(s) of a form once it has been submited, to prevent duplicate submissions.

About This Script

  1. Add the code from below to the <head> section of your web page.
  2. Add the 'preventDuplicate' class to your form(s) like this: <form action="#" class="preventDuplicate">



<!-- jQuery is required if you're not already using it --> <script src="//"></script> <script> $(function(){ $('form.preventDuplicate').each(function(){ $(this).on('submit', function() { $(this).find('input[type=submit], button').attr('disabled', 'disabled'); $(this).off('submit'); $(this).on('submit', function(){ return false; }) }); }); }); </script>
More scripts

Do you want to expose your site to millions?
Do you want to be ranked higher in Google?
Do you want to be known as the best site in your niche?

Then look no further. Add your site in 3 simple steps. Sign up, Add your site and Start receiving votes! It only takes 10 seconds!

Sign Up to Top Site List Planet Now!

Login with one of these social networks...

Sign in with FacebookSign in with TwitterSign in with Google+Sign in with Yahoo!Sign in with LinkedIn

or create an account with your email...

Login To An Existing Account