Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jquery plug-in to prevent double click on form submit

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29002
    vasu
    Member

    Hey Guys !!

    Any good recommendations on a good JQUERY plug-in to prevent double clicking on form submit button thereby preventing duplicate preventions ??

    Thank you.
    VASU.

    #75541
    Chris Coyier
    Keymaster

    I would think this would work.

    Code:
    $(“form”).submit(function() {

    $(this).find(“input[type=submit]”).attr(“disabled”, true);

    });

    #75550
    vasu
    Member

    Thanks Chris but this doesn’t work as once you disable the submit button, it doesn’t pass any of the form values in the POST.

    Any other ideas ?

    Thank you.

    #148570
    f_aziizii
    Participant

    $(‘form’).submit(function () {
    $(‘:submit’, this).click(function () {
    return false;
    });
    });

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.