Created
September 2, 2014 20:26
-
-
Save bartek/b6609cc2ba6ceb6a4ea5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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