mydeleterow

function mydeleterow(){

var allrows = document.getElementById("table1").rows;
var mylength = allrows.length;
for(var j = 1; j< mylength; j++){
if(allrows[j].cells[0].getElementsByTagName('input')[0].checked == true){
allrows[j].parentNode.removeChild(allrows[j]);
j
--;
mylength
--;
}
}

}
posted @ 2011-08-05 12:42  lostyue  阅读(132)  评论(0编辑  收藏  举报