hmmm, a jak podepne jescze cos takiego:
CODE
$("tr.domenajest")
.hover(
function () {$(this).stop().animate({backgroundColor:"#ABC"}, 200);},
function () {$(this).stop().animate({backgroundColor: "#F3F6FB" }, 200);}
)
.click(
function ()
{
// alert($(this).find("input[type='checkbox']").is(':checked')+'row');
if($(this).find("input[type='checkbox']").is(':checked'))
{
$(this).find("input[type='checkbox']").attr("checked",'');
$(this).hover(
function () {$(this).stop().animate({backgroundColor:"#ABC"}, 200);},
function () {$(this).stop().animate({backgroundColor: "#F3F6FB" }, 200);}
)
}
else
{
$(this).find("input[type='checkbox']").attr("checked","checked");
$(this).hover(
function () {$(this).stop().animate({backgroundColor:"#81A14E"}, 200);},
function () {$(this).stop().animate({backgroundColor: "#DFFFC0" }, 200);}
)
}
// alert($(this).find("input[type='checkbox']").is(':checked')+'row');
}
);
nie chce mi htmla wstawic
ale to wyglada tak:
tr class="domenajest"
td
input type="checkbox"
/td
/tr