单击行变色

单击行变色
function GridRowOnClick(gridId,gridRow,pkValue,rowIndex)
{
if(window.prevRow != null)
     {
     window.prevRow.style.backgroundColor = window.prevColor;
     window.prevRow.style.color = window.prevForeColor;
     }
     window.prevRow = gridRow;
window.prevColor = gridRow.style.backgroundColor;
     window.prevForeColor = gridRow.style.color;
gridRow.style.backgroundColor = "#3B5998";
gridRow.style.color="#D7DFEA";
 
}
posted @ 2018-12-27 11:04  大虎1  阅读(118)  评论(0编辑  收藏  举报