HenrikJoreteg / Happy.js

$('form').isHappy() – Lightweight, extensible form validation plugin for jQuery/Zepto.js
http://projects.joreteg.com/Happy.js/
MIT License
412 stars 123 forks source link

how to validate the email address #24

Closed djyde closed 10 years ago

djyde commented 11 years ago

i dont understand how to validate whether is a valid email address

wraithgar commented 10 years ago

There is an example in happy.methods.js. The demo shows how you could use happy.methods.js (which exposes a happy object you can call methods from) to test for an email. happy.email is just a function that validates the string against a common email validation regex