Menu
It works when I don’t input a correct e-mail format, but when I do, it won’t let me go to the next field, it focuses on that field and selects it. What am i missing?
Thanks!
function checkEmail(field, fieldname){
var x = field.value;
var filter = /^([a-zA-Z0-9_.–@–.
if(field.value.length > 0 ) {
if (filter.test(x));
else alert(‘Oops! This doesn’t appear to be a valid e-mail address.’);
field.focus();
field.select();
}
}