A simple javascript email validation.
function emailRegx(text){ var pattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; return (pattern.test(text)) ? true : false; }
Javascript email validation
A simple javascript email validation.
function emailRegx(text){ var pattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; return (pattern.test(text)) ? true : false; }
Pingback:Ross