jquery改变tr背景色的示例代码
内容摘要
id为tr的ID
设置当前选择行背景色,同时置其他行背景为另一种颜色复制代码 代码如下:$('#id').css("background-color", "#e5e5e5").siblings().css("background-color", "#FF
设置当前选择行背景色,同时置其他行背景为另一种颜色复制代码 代码如下:$('#id').css("background-color", "#e5e5e5").siblings().css("background-color", "#FF
文章正文
id为tr的ID
设置当前选择行背景色,同时置其他行背景为另一种颜色
复制代码 代码如下:
$('#id').css("background-color", "#e5e5e5").siblings().css("background-color", "#FFFFFF");
代码注释