jzaefferer/jquery-validation — Issue #255: .form() and .valid() on jQuery Validation 1.9 with jQuery 1.7
Author: jimmyheaddon
Created: 2011-11-07 10:07:33+00:00
State: open

I have several forms setup on jQuery tabs, each of which needs to be validated on an input change event seperate to one another (the idea being that a user cannot progress to the next tab without completing the previous form).

If on input change I run the following code I notice that the .form() method returns the correct result, but the .valid() method and .errorList length are incorrect:

var formValidator = $('#jQueryTabs #' + getSelectedjQueryTabName() + ' form').validate();
if (formValidator.form()) {

}
if (formValidator.valid()) {
return true;
}