$('#timetable td').each(function(){
$(this).click(function(){
if($(this).html()=="√"){
$(this).css("background-color","white");
$(this).text("");
}else {
$(this).css("background-color", "#96b8ff");//设置点击td的颜色
$(this).text("√");
}
});
});
jquery td 点击改变颜色
最新推荐文章于 2024-07-03 02:57:21 发布