html button控件 非活性
来源:互联网 发布:网络微电影排行榜 编辑:程序博客网 时间:2024/04/29 19:54
<html>
<head>
<title>Login</title>
<script type="text/javascript" src="show.js">
</script>
</head>
<body>
<table>
<tr>
<td>
用户名:
</td>
<td>
<input type="text" name="userId" id="userId" style="width: 150px" maxlength="9"/>
</td>
</tr>
<tr>
<td>
密 码:
</td>
<td>
<input type="password" name="password" style="width: 150px;" size="20" id="password" onkeyup="javascript:show()"/>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" name="submit" style="width: 50px; height: 25" value="登陆" id="submit" disabled />
</td>
</tr>
</table>
</body>
</html>
show.js
function show(){
var userId = document.getElementById("userId").value;
var password = document.getElementById("password").value;
if(userId =="" || password ==""|| userId ==null || password ==null){
document.getElementById("submit").disabled=true;
}else{ www.2cto.com
document.getElementById("submit").disabled=false;
}
}
- html button控件 非活性
- 非活性按钮
- HTML控件非ajax方法调用后台
- html button
- button控件
- Button控件
- Button控件
- Button控件
- button控件
- Button控件
- Button控件
- Button控件+自定义Button控件
- ASPX的BUTTON控件与HTML的BUTTON控件在返回上一页上的JS代码书写区别
- Extjs应用札记之-Grid中checkboxSelectionMode非活性(disabled)
- 在非纯色背景上,叠加背景透明的BUTTON和STATIC_TEXT控件
- 在非纯色背景上,叠加背景透明的BUTTON和STATIC_TEXT控件
- 解决sliverlight,非button控件保存,光标未移开,binding的值不提交问题
- Android基础知识之控件系列(3)——Button的非直接子类们
- 解密Facebook产品的开发流程
- 深入了解struts2
- Objective-C第六讲-多态性
- 为什么使用多线程?
- native2ascii的使用 struts国际化
- html button控件 非活性
- 表情预览中,清空预览区域的背景
- iptables 数据包流程图
- Android深入浅出之Zygote
- A10 ubuntu-10.04.4-desktop-amd64.iso的U盘安装方法
- 关于C语言的二维数组和指针注意的地方
- 【视频】用Arduino自制家庭控制开关
- 大师罗莊自己整理的绘画色彩笔记
- 开通CSDN博客。记录对magento 105se模版的修改。以防以后忘记