|  | 
 
| $(":input").on("click",function () { var label = $(this).parent(".selectit").parent("li").children(".children").find("input");
 console.log(label);
 if($(this).is( ':checked')) {
 $(this).parent(".selectit").css("color","red");
 label.prop("checked",true);
 label.parent(".selectit").css("color","red");
 }else{
 $(this).parent(".selectit").css("color","black");
 label.prop("checked",false);
 label.parent(".selectit").css("color","black");
 }
 });
 
 
 | 
 |