[Javascript] Form Input email validation Turn Back
2020-03-05 15:24:15
function validEmail( email ){var emailArr = email.split(",");var ret = false;for(var i=0; i<emailArr.length;i++){if (/^w+([.-]?w+)*@w+([.-]?w+)*(.w{2,3})+$/.test(emailArr[i].trim())){ret = true;}else{return (false);}}return ret;}