Created
June 19, 2017 23:02
-
-
Save AndrewHuffman/41af3b76819e1d7985824fc5a944f578 to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
name: function validateName(elm) { | |
var name = elm.value; | |
if (name.length < 2) { | |
producePrompt('Name is required', 'name-error', 'red') | |
return false; | |
} | |
producePrompt('Valid', 'name-error', 'green'); | |
return true; | |
}, | |
phone: function validatePhone(elm) { | |
// validate phone | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment