Home  >  Article  >  Web Front-end  >  拜求解:关于jsp中的form的onsubmit_html/css_WEB-ITnose

拜求解:关于jsp中的form的onsubmit_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:09:521053browse


nbsp;HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">



登录……系统






  

  

登录


  

用户名:  *


  

密码:  *


  

     


  

注册       忘记密码
  






js/checkform.js为:
function checkselect(object) {
if (object.name.vale=="") {
alert("用户名不能为空!");
 
return false;
} else if (object.password.value=="") {
alert("密码不能为空!")

return false;
} else {
return true;
}

}

为什么不会有提示…………………………………………………………




回复讨论(解决方案)

 language="
试过了可以提示啊

if (object.name.vale=="") {
alert("用户名不能为空!");
这里少了个U

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn