You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validate region w/ both success and error handlers
the error handler stops the normal error throwing behavior
error handler is passed the failed field and the error message
$('region').validate(function(){// validation passed},function(input,message){// validation failed// do something with var input// do something with message});
Add validation rule
returns true/false if succesful
notice the empty selector: none needed
the "valid" property passes the field currently being validated's value to be validated
the "valid" property must return true if passing, otherwise false
if you don't want the new rule to be required you need to include "OR value is equal to [empty string]" condition
"scope" argument is the element that .validate() was called on