jquery 改变table选中行背景色

$(function(){
	$("#id_detailTable").find('tr').click(function(){
		$("#id_detailTable").find('tr').css('background-color','white');
		$(this).css('background-color','#e2f5ff'); /**选中行改变背景色**/
	});
});

猜你喜欢

转载自blog.csdn.net/zhangyongbink/article/details/68486392