'validation' Tag

  • Simple way to validate email in javascript

    February 15, 2013

    Just use : function isMail(email) { var re = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; return re.test(email); } Simple as that.

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org