求救啊!!!!!!!! 在同一个表单中不应该出现同名同id的控件(select 等)除外,输入框是不应该出现同名的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <input type="text" name="inviote" class="tinput" onChange="return testaa();" ><input name="zs_id" class="tinput" type="text" size="10" ><input name="zs_id" class="tinput" type="text" size="10" ><input name="zs_id" class="tinput" type="text" size="10" > function testaa() { zs_id temvalue=document.myform.inviote.value; document.myform.zs_id(1).value=temvalue; } 哦不好意思,没贴过来<!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" /><title>无标题文档</title></head><body><input type="text" id="inviote" name="inviote" class="tinput" onkeypress="testaa()" ><input id="zs_id" name="zs_id" class="tinput" type="text" size="10" ><input id="zs_id" name="zs_id" class="tinput" type="text" size="10" ><input id="zs_id" name="zs_id" class="tinput" type="text" size="10" ><script> function testaa() { temvalue=inviote.value; for(var i=0;i<zs_id.length;i++) zs_id[i].value=temvalue; } </script></body></html> 按键的时候循环赋值,由于是js,所以应该添加id属性 在登陆的时候输入验证码如果验证错误就不提交,该怎么做?怎样在js比较是否验证成功 html结构放在页面中有效,通过Ajax加载进来怎么就用不了效果了? js+vml曲线图,带tooltip,当数据上万时怎样提高画图性能 javascript如何覆盖activex控件,急。。。在线等 为什么提示缺少标识符 如何通过选中/取消 checkbox来显示/隐藏表格的某一列? 页面间参数传递 怎么样在主窗口中Location到包含的IFrame(在线等待中~~~~~~~) 请教大家:复制链接问题 哪里有js教程的下载、(内容相符就给分) 何在动态选中任意一行的第一列时,定位到该行的第二列? 下拉框问题
<input name="zs_id" class="tinput" type="text" size="10" >
<input name="zs_id" class="tinput" type="text" size="10" > function testaa()
{
zs_id
temvalue=document.myform.inviote.value;
document.myform.zs_id(1).value=temvalue;
}
<!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" />
<title>无标题文档</title>
</head><body>
<input type="text" id="inviote" name="inviote" class="tinput" onkeypress="testaa()" ><input id="zs_id" name="zs_id" class="tinput" type="text" size="10" >
<input id="zs_id" name="zs_id" class="tinput" type="text" size="10" >
<input id="zs_id" name="zs_id" class="tinput" type="text" size="10" ><script>
function testaa()
{
temvalue=inviote.value;
for(var i=0;i<zs_id.length;i++)
zs_id[i].value=temvalue;
}
</script>
</body>
</html>