[ACCEPTED]-jquery validation only for visible controls-validation
Accepted answer
I haven't used the jQuery validation before 4 but according to the doco there's an ignore field 3 that you can pass a jQuery selector to. By 2 using the :visible selector you should be able to 1 do this.
I believe this is what you're after
$("#registerform").validate({ignore:":not(:visible)"});
You may try to add :visible
to the selector itself:
$("#registerform :visible")
0
Please also try this way
if ($(#registerform).is(":visible")) {
$(#registerform).validate();
}
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.