Updated definitions with checkForm() function on Validator prototype

This commit is contained in:
Matt Bailey 2017-02-03 15:00:02 -08:00
parent dba28e9608
commit 4908d6bad5
2 changed files with 2 additions and 0 deletions

View File

@ -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.
*/

View File

@ -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"));