Flagrate API documentation

Home ▲
instance-method

flagrate.Form#validate

flagrate.Form#validate([done]) → flagrate.Form

Example

form.validate(function(success) {
  if (success) {
    console.log('form is valid.');
  } else {
    console.log('form is invalid.');
  }
});