Savvion Help

Do you need help on Savvion?
E-mail us on for any information, help, how-to or questions and we will contact you and reply to your question as soon as possible.

Friday, July 29, 2011

Custom JavaScript Email Validation

Below is simple yet powerful custom javascript email validation function which allows usual user@domain address for your email field.

function validateEmail(txtValue) {

var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;

if(reg.test(txtValue) == false) {
return false;
return true;


No comments: