Posted on 4 Comments

Prevent Duplicate Form Submissions with jQuery

Some shopping cart forms will allow buyers to click the buy/submit button more than once, resulting in multiple charges to the same person, and irritation. There is a simple way to prevent duplicate form submissions using jQuery. This script prevents a form from being submitted twice, except when using Firefox 3.x, which will submit the form no more than twice if the visitor is clicking the submit/buy button repeatedly.

4 thoughts on “Prevent Duplicate Form Submissions with jQuery

  1. Effective, and so simple! Lovely.

  2. perfect

  3. It works perfectly!! Thanks!!

  4. Hi!

    Your solution actually worked!

    I’ve been searching for a while for a simple solution to do the trick and this one was the best I’ve found.

    Thanks !

Leave a Reply

Your email address will not be published. Required fields are marked *

HTML tags are not allowed.

153,252 Spambots Blocked by Simple Comments