Avatar of me24hour
me24hour
Flag for United States of America asked on

sharepoint 2010 jquery validation plugin not working

I am using the jQuery validation plug-in,to validate a form.  It i try to submit a form that is not valid, it gives a validation error and that is fine. However, when I submit the form again after making all the corrections, I cannot submit the form.
Please help !!
Here is the code:
(function ($) {
    $.fn.moveTo = function (selector) {
        return this.each(function () {
            var cl = $(this).clone();
            $(cl).appendTo(selector);
            $(this).remove();
        });
    }
})(jQuery);

$(document).ready(function () {

    // Remove all of the content from the recaptchalistitem li element
    $("li.recaptchalistitem").empty();

    // Move the recaptchaContainer div into the recaptchalistitem li element
    $("div.recaptchaContainer").moveTo("li.recaptchalistitem");
    $("div.recaptchaContainer").show();

    // Make the recaptcha a required field
    //$("#recaptcha_response_field").attr("class", "required");

    // Set up the form for validation
    $("#aspnetForm").validate();
});

Open in new window

jQueryMicrosoft SharePointMicrosoft Development

Avatar of undefined
Last Comment
Rainer Jeschor

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rainer Jeschor

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes