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

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

WBOY
Release: 2016-06-24 12:09:52
Original
1157 people have browsed it

<%@ 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

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template