mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-14 20:35:47 +01:00
Core: Added precondition to call isValidElement method
This commit is contained in:
@@ -514,6 +514,9 @@ $.extend( $.validator, {
|
||||
// true If the field is valid
|
||||
// false If the field is invalid
|
||||
// undefined If the field is not validated yet.
|
||||
//
|
||||
// Note that this method assumes that you have
|
||||
// already called `validate()` on your form
|
||||
isValidElement: function( element ) {
|
||||
return this.invalid[ element.name ] === undefined ? undefined : !this.invalid[ element.name ];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user