JQuery Validation Library (Document! X Sample)
jQuery Namespace / validator type / numberOfInvalids Method
In This Topic
    numberOfInvalids Method
    In This Topic
    Returns the number of invalid fields.
    Syntax
    var options; // Type:  jQuery.validator.options
    var instance; // Type:  jQuery.validator
    instance = $(".selector").validate(options);
    
    var value; // Type:  Number
    value = instance.numberOfInvalids();
    function numberOfInvalids() : Number;
    Browser Compatibility
    8
    5
    5
    See Also