Hello i have problem. I have that function:
$("#tabela tr").toggle(function(){
$(this).addClass("zaznaczone");
$(this).find(" :checkbox").attr("checked", "1");
},function(){
$(this).removeClass("zaznaczone");
$(this).find(" :checkbox").attr("checked", "");
});
and it's fine when i click on "tr" but when i click on checkbox this line response but checkbox not. It's mean checkobx after this operation is not checked.