Skip to content

Instantly share code, notes, and snippets.

@bartek
Created September 2, 2014 20:26
Show Gist options
  • Save bartek/b6609cc2ba6ceb6a4ea5 to your computer and use it in GitHub Desktop.
Save bartek/b6609cc2ba6ceb6a4ea5 to your computer and use it in GitHub Desktop.
$el = $("my-input");
var checkLength = function(input) { if (input.length > 40) { return true } return false; }
var validateEmailAddress = function(input) { return ... }
var rules = [
checkLength,
validateEmailAddress
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment