Home  >  Article  >  Web Front-end  >  Please solve: onsubmit_html/css_WEB-ITnose of form in jsp

Please solve: onsubmit_html/css_WEB-ITnose of form in jsp

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

<%@ page language="java" pageEncoding="gbk"%>




登录……系统






  
  

登录


  用户名:  *


  密码:  *


       


  注册       忘记密码
  




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
Previous article:The main methods for page layout design in web programs are tables and divs. Let’s try to describe the two methods_html/css_WEB-ITnoseNext article:The main methods for page layout design in web programs are tables and divs. Let’s try to describe the two methods_html/css_WEB-ITnose

Related articles

See more