troubleshooting Question

sharepoint 2010 jquery validation plugin not working

Avatar of me24hour
me24hourFlag for United States of America asked on
Microsoft SharePointMicrosoft DevelopmentjQuery
1 Comment1 Solution832 ViewsLast Modified:
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();
});
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros