<input type="checkbox" οnclick="c1(this)"/>
//选中改变颜色
function c1(v){
if(v.checked){
$(v).parent().parent().css("background-color","hotpink");
}else{
$(v).parent().parent().css("background-color","aliceblue");
}
}
<input type="checkbox" οnclick="c1(this)"/>
//选中改变颜色
function c1(v){
if(v.checked){
$(v).parent().parent().css("background-color","hotpink");
}else{
$(v).parent().parent().css("background-color","aliceblue");
}
}