点击Table一行变色

function ExpendInstance(tbid,srow){
var ctrl = document.getElementById(tbid);
if(ctrl==null)return;

try
{
        for(var i = 0; i < ctrl.rows.length;i++){
        ctrl.rows[i].bgColor = "#ffffff";
        }
        srow.bgColor = "#f7fac5";
}
catch(ex)
{
        alert(ex);
}

DoSomething();
}

Leave a Reply

Your email address will not be published. Required fields are marked *

*