inputtext.disabled=true; 不可用
inputtext.readonly=true; 不可写
inputtext.readonly=true; 不可写
解决方案 »
- jquery ajax问题
- js小问题求教
- [向大家提问]Function.prototype.apply.apply是什么东东??有分会补上~
- 如何用javascript判断文本框输入的是否是数字?急~~~~~~~
- Windows NT 脚本命令 和 Windows 宿主脚本 不是一回事情吧??哪里与WindowsNT 脚本命令的学习手册之类的下载啊?
- 怎么阻止Extjs4中表单提交
- 怎么样用javascrpt创建文档对象模型
- 请教各位大侠!
- 求助!如何利用javascript来打印网页中的特定内容以实现web打印,而不是打印整个页面
- 请问这功能是火狐浏览器的什么功能
- 谁知道做树型目录或菜单?
- 用户注册时怎么样限制如果填写了其中某一文本框后就必须填写另一个文本框呢??
<input type=button value=ok onclick="t1.disabled = t1.disabled?false:true;">
<select onchange="t1.disabled = this.value=='1'?false:true;">
<option value=0>0
<option value=1>1
</select>try~~~
是可以的,自己试试才知道
function aa(){
document.form1.text1.vlaue.onfocusout())
abc=setTimeout("aa()";10)
}
aa();3
function bb(){
if(document.form1.text1.onfocus(){
document.form1.text2.onfocus()
}
}
<body>
<form name="from1" action="">
<input type=text name="text1" >
<input type=text name="text2">
</form>
</body>