一个纯粹送分的问题哈 各位帮帮忙 晕 这个是笔误啦 disabled不是这个原因的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 明天了 应该是b.checked哈哈散分撒分 <input name="rb" type="checkbox" id="rb" onClick="test()" value="1"><script.....>function test(){if (form1.tb.value=="1")//这里引号{form1.ta.value="hello";form1.ta.disables=true;}else{form1.ta.value=" ";form1.ta.disables=false;}}</script> <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题文档</title></head><body> <form name="form1" method="post" action=""> <input name="rb" type="checkbox" id="rb" onClick="form1.ta.disabled = !(form1.ta.disabled);if(this.checked){ form1.ta.value = 'hello';}else{form1.ta.value = '';}" value="1"> <tr><input type="text" name="ta"></td></tr> </form></body></html> form1.tb.value==1不是这样判断的form1.tb.checked==true|false关于日期的常见操作http://community.csdn.net//Expert/TopicView2.asp?id=4360247&datebasetype=nowjs FAQ贴http://community.csdn.net//Expert/TopicView2.asp?id=4356360&datebasetype=nowDHTML手册,js手册,dom手册下载http://community.csdn.net//Expert/TopicView2.asp?id=4356325&datebasetype=now <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><script language="JavaScript">function test(i) { var frm = i.form; if (i.checked == true) { frm.ta.value = "hello"; frm.ta.disabled = true; } else { frm.ta.value = ""; frm.ta.disabled = false; }}</script><title>无标题文档</title></head><body><form id="form1" name="form1" method="post" action=""> <input type="checkbox" name="rb" value="1" onClick="test(this)" /> <input type="text" name="ta" /></form></body></html> asp.net获取到一段json,该对象里面有个属性为“new”,如何获取该new jQuery在ajax的回調方法中如何解析json數組 javascript 对象疑惑 dreamweaver中应用模板时.... JS传值问题(急!!!!) 关于跨浏览器容错 一个菜鸟问题,高手帮忙看看 我做了一个输入界面,旁边有一个查看按钮。。。。。。。看看这种功能如何实现? 弹出提示的显示 请问怎么让HTML页面在浏览器关闭的时候重新打开一个窗口。 各位大哥请问为什么我的验证不起作用 我想在 JS 弹出的窗口中写动态的 ASP 数据库里的内容
哈哈散分撒分
<script.....>
function test()
{
if (form1.tb.value=="1")//这里引号
{
form1.ta.value="hello";
form1.ta.disables=true;
}
else
{
form1.ta.value=" ";
form1.ta.disables=false;
}
}
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body> <form name="form1" method="post" action="">
<input name="rb" type="checkbox" id="rb" onClick="form1.ta.disabled = !(form1.ta.disabled);if(this.checked){ form1.ta.value = 'hello';}else{form1.ta.value = '';}" value="1">
<tr><input type="text" name="ta"></td></tr>
</form>
</body>
</html>
http://community.csdn.net//Expert/TopicView2.asp?id=4360247&datebasetype=now
js FAQ贴
http://community.csdn.net//Expert/TopicView2.asp?id=4356360&datebasetype=now
DHTML手册,js手册,dom手册下载
http://community.csdn.net//Expert/TopicView2.asp?id=4356325&datebasetype=now
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script language="JavaScript">
function test(i) {
var frm = i.form;
if (i.checked == true) {
frm.ta.value = "hello";
frm.ta.disabled = true;
} else {
frm.ta.value = "";
frm.ta.disabled = false;
}
}
</script>
<title>无标题文档</title>
</head><body>
<form id="form1" name="form1" method="post" action="">
<input type="checkbox" name="rb" value="1" onClick="test(this)" />
<input type="text" name="ta" />
</form>
</body>
</html>