instance-method
flagrate.Form#validate
flagrate.Form#validate([done]) → flagrate.Form
done
(Function
) – callback when the validation is done.
Example
form.validate(function(success) {
if (success) {
console.log('form is valid.');
} else {
console.log('form is invalid.');
}
});