GridView中checkbox全选/取消完美兼容IE和Firefox
代码如下: function selectAll(obj) { var theTable = obj[removed][removed][removed][removed]; var i; var j = obj[removed].cellIndex; for(i=1;i<theTable.rows.length;i++) { if(theTable.rows[i].cells.length<j) continue; var objCheckBox = theTable.rows[i].cells[j].getElementsByTagName(‘input’)[0]; i
用户评论