我的意思是如果login和name的值都为空则ALERT提示!但下面的语句好像不起作用!
if (document.form1.login.value=="" && document.form1.name.value==""){
alert('Please input the NIPUSA ID or Email Address ')
return false;
}
...全文
424打赏收藏
这句脚本怎么没有执行?
我的意思是如果login和name的值都为空则ALERT提示!但下面的语句好像不起作用! if (document.form1.login.value=="" && document.form1.name.value==""){ alert('Please input the NIPUSA ID or Email Address ') return false; }
if (document.form1.login.value.length==0 && document.form1.name.value.length==0){
alert('Please input the NIPUSA ID or Email Address ')
return false;
}