[ACCEPTED]-jquery validation only for visible controls-validation

Accepted answer
Score: 43

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)"});
Score: 3

You may try to add :visible to the selector itself:

$("#registerform :visible")

0

Score: 0

Please also try this way

 if ($(#registerform).is(":visible")) {
      $(#registerform).validate();
  }

0

More Related questions