Function to check if valid e-mail address format in input form etc.
function checkEmailAddress(str){
if(str.match(/.+@.+\..+/)==null){
return false;
} else {
return true;
}
}
正規表現ですね。
input type=”email”でも良いような気がしますが。。
ソフトウェアエンジニアの技術ブログ:Software engineer tech blog
随机应变 ABCD: Always Be Coding and … : хороший