del函数改成如下function del(){
var c = document.getElementsByName('tt');
for(var i=c.length-1; i>=0; i--){
if(c[i].checked) {t1.deleteRow(i);}
}
}
var c = document.getElementsByName('tt');
for(var i=c.length-1; i>=0; i--){
if(c[i].checked) {t1.deleteRow(i);}
}
}
解决方案 »
- 很奇怪的问题!只有运行alert()后,接下来的语句才能执行!
- 网页链接错误
- 如何把服务器端输出的二进制流在网页上显示出来(有可能是文本,图片,视频);
- 回复就给分:这段js有点看不懂
- 求jquery实现以下效果
- 处理字符串长度的问题
- 兄弟们,有没有好点的JS日期计算函数什么的
- 急!!判断数字
- 象许多软件下载站,他有个框写着“关键字”当鼠标移上去,那字就没了,怎么做?
- web前端 jq如何获取gridview里面checkboxlist的值
- JS是否支持变长参数的函数,如何使用?在线等
- 有谁知道前年*ao123首页上放的流量记数作弊代码,为什么现在不好使了,有需要代码的留下QQ。(二星以下勿入)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ÎÞ±êÌâÎĵµ</title>
</head><script language="JavaScript" type="text/JavaScript">function add(){
var aa=t1.insertRow()
aa.insertCell().innerHTML = ' <input type="checkbox" name="tt"> <input name="test'+t1.rows.length+'"><select onChange="showdate(this)"><option value="">ÇëÑ¡Ôñ</option><option value="2">2</option><option value="3">3</option></select>';}
function del(){
var c = document.getElementsByName('tt');
var temp=new Array();
var j=0;
for(var i=0; i<c.length; i++){
if(c[i].checked) {temp[j]=i;j++;}
}
j--;
for(;j>=0;j--){
t1.deleteRow(temp[j]);
}
}</script>
<body>
<form method="post" name="form1" action="../documentmanage/SaveIndexInit.do">
<div align="right">
<input type="hidden" name="dcInitDef" />
<input type="submit" name="Submit" value="Ìá½»">
¡¡
<input type="reset" name="Submit" value="ÖØÖÃ">
¡¡<input type="button" name="Submit" value="Ìí¼Ó" onClick="add()">
¡¡ <input type="button" name="Submit" value="ɾ³ý" onClick="del()">
</div>
<table width="543" border="0" align="center" cellpadding="0" cellspacing="0" id="t1">
<tr>
<td width="355" nowrap>¡¡¡¡¡¡
<input type="checkbox" name="tt">
<input type="text" name="textfield">
</td>
<td width="188" nowrap><div id="selectvalue">ÇëÑ¡Ôñ</div></td>
</tr>
<tr>
<td colspan="2">
¡¡¡¡¡¡
<input type="checkbox" name="tt">
<input type="text" name="textfield">
</td>
</tr>
</table>
</form>
</body>
</html>
进入安全性评价供电第三版,用户名999,口令9,里面的数据管理都是批量进行的。