新增同学是,怎么让新增的<input>标签也能有高光效果
function Highlight(){
var tbody = document.getElementById('table').lastChild;
trs = tbody.getElementsByTagName('tr');
tds=document.getElementsByTagName('td');
for(var i =1;i<trs.length;i++){
trs[i].onmouseover = function(){
this.style.backgroundColor ="#f2f2f2";
// for(var j=0;j<this.childNodes.length;j++){
// this.childNodes[j].childNodes.style.backgroundColor="#f2f2f2";
// }
}
trs[i].onmouseout = function(){
this.style.backgroundColor ="#fff";
}
}
}