jQuery 验证,如何知道什么时候有效?

jQuery Validate, how to know when it's valid?

我有一个表单,我想知道它是否在未提交时验证。我需要这个值。

 var validation = $(idFormulario).validate({
   errorClass: 'jqInvalid',
   errorPlacement: function (error, element) {
        return false;
   },
  success: function(e){
       return false; //not submit
  }
});

没用。如何检查表单是否有效?

you've to use valid().

所述

Description: valid() Checks whether the selected form is valid or whether all selected elements are valid.

示例:

$(idFormulario).valid();

希望对您有所帮助。