Валидация email
1 2 3 4 5 |
function validationEmail(email) { pattern = /^([a-z0-9_\.-])+@[a-z0-9-]+\.([a-z]{2,4}\.)?[a-z]{2,4}$/i; return pattern.test(email.val()); } |
Валидация email
1 2 3 4 5 |
function validationEmail(email) { pattern = /^([a-z0-9_\.-])+@[a-z0-9-]+\.([a-z]{2,4}\.)?[a-z]{2,4}$/i; return pattern.test(email.val()); } |