Skip to content

Instantly share code, notes, and snippets.

@vivekn
Created August 15, 2011 16:51
Show Gist options
  • Save vivekn/1147177 to your computer and use it in GitHub Desktop.
Save vivekn/1147177 to your computer and use it in GitHub Desktop.
jQuery Submit
$("form").submit(function () {
var status = Validators({
"input": new EmptyValidator(),
"#email": new EmailValidator("Please enter a valid email address"),
"#pass": new LengthValidator(6, "The password should be atleast 6 characters")
});
return status;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment