Grow your CSS skills. Land your dream job.

jquery plug-in to prevent double click on form submit

  • # May 13, 2010 at 12:41 am

    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.

    # May 13, 2010 at 2:10 pm

    I would think this would work.

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

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

    });

    # May 13, 2010 at 7:01 pm

    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.

    # August 30, 2013 at 4:00 am

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

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".