The answer to Cletus is right, but I think it can be improved a bit:
$(function() {
$("#chk").click(function() {
$(this)
.parents("tr:first")
.toggleClass("diffColor", this.checked)
;
});
});
The only real differences are here:
<tr>.... , , , .- . , - "diffColour" , , , .
, change:
$('#chk').bind('click change', function() {