mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Updated definitions with checkForm() function on Validator prototype
This commit is contained in:
parent
dba28e9608
commit
4908d6bad5
1
jquery.validation/index.d.ts
vendored
1
jquery.validation/index.d.ts
vendored
@ -217,6 +217,7 @@ declare namespace JQueryValidation
|
||||
interface Validator
|
||||
{
|
||||
element(element: string|JQuery): boolean;
|
||||
checkForm(): boolean;
|
||||
/**
|
||||
* Validates the form, returns true if it is valid, false otherwise.
|
||||
*/
|
||||
|
||||
@ -208,6 +208,7 @@ function test_methods() {
|
||||
$("#myform").submit();
|
||||
$("#myinput").attr(rules);
|
||||
});
|
||||
$("#myform").validate().checkForm();
|
||||
$("#myform").validate().form();
|
||||
$("#myform").validate().element("#myselect");
|
||||
$("#myform").validate().element($("#myselect"));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user