function checkform() {
if (document.getElementById("UserName").value=="" || document.getElementById("sPassword").value==""){
alert("用户名或密码为空!");
return false;
}
return true; }
if (document.getElementById("UserName").value=="" || document.getElementById("sPassword").value==""){
alert("用户名或密码为空!");
return false;
}
return true; }
解决方案 »
- 说说大家都是在用哪一个jquery版本?
- js动态删除表格的问题
- 为什么加<!DOCTYPE...div就不滚动呢?请大家看看,急,谢了~
- 怎样关闭父 showModalDialog 窗口。
- HTML与UBB转换的方法
- javascript如何验证mac合法性
- 在线等 求救 这样的表单怎么求和值
- 怎样实现javascript的线程安全?
- Uncaught TypeError: Cannot read property 'path' of undefined
- 大佬们,请教个问题,如何获取点击元素的cssx选择器路径?
- 这段代码出什么问题了?
- 我是用window.open() 来打开一个页面 我现在如何实现不用openDialog() 来实现重复点击只弹出一个页面
if (document.getElementById("sUserName").value=="" || document.getElementById("sPassword").value==""){
alert("用户名或密码为空!");
return false;
}
return true; }
多谢