mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
[jquery.validation][1.11.1] invalidElements and validElements methods
This commit is contained in:
@@ -227,4 +227,6 @@ function test_methods() {
|
||||
maxlength: 5
|
||||
}
|
||||
});
|
||||
var invalidElements: HTMLElement[] = validator.invalidElements();
|
||||
var validElements: HTMLElement[] = validator.validElements();
|
||||
}
|
||||
|
||||
2
jquery.validation/jquery.validation.d.ts
vendored
2
jquery.validation/jquery.validation.d.ts
vendored
@@ -197,6 +197,7 @@ interface Validator
|
||||
* @param template The string to format.
|
||||
*/
|
||||
format(template: string, ...arguments: string[]): string;
|
||||
invalidElements(): HTMLElement[];
|
||||
/**
|
||||
* Returns the number of invalid fields.
|
||||
*/
|
||||
@@ -220,6 +221,7 @@ interface Validator
|
||||
showErrors(errors: any): void;
|
||||
hideErrors(): void;
|
||||
valid(): boolean;
|
||||
validElements(): HTMLElement[];
|
||||
size(): number;
|
||||
|
||||
errorMap: ErrorDictionary;
|
||||
|
||||
Reference in New Issue
Block a user