dpts,
добавлен класс check -- если не подходит класс перечислите id нужных div $("#d1, #d2, #d3")
<html>
<head>
<meta http-equiv="Content-Type" content="number/html; charset=windows-1251">
<meta http-equiv="Content-Language" content="ru">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<title>Чекбоксы</title>
<script>
$(function() {
$(".check").each(function(d, a) {
var b = $("input:checkbox", a),
c = $("input:text", a);
b.click(function() {
c.val(+this.checked)
})
})
});
</script>
</head>
<body>
<div id="d1" class="check">
<table id="td11">
<tr>
<td><input type="checkbox" id="c1" ></td>
</tr>
</table>
<table id="td12">
<tr>
<td><input type="text" id="t1" value="0"></td>
</tr>
<tr>
<td><input type="text" id="t2" value="0"></td>
</tr>
<tr>
<td><input type="text" id="t3" value="0"></td>
</tr>
<tr>
<td><input type="text" id="t4" value="0"></td>
</tr>
</table>
</div>
<div id="d2" class="check">
<table id="td21">
<tr>
<td><input type="checkbox" id="c2" ></td>
</tr>
</table>
<table id="td22">
<tr>
<td><input type="text" id="t5" value="0"></td>
</tr>
<tr>
<td><input type="text" id="t6" value="0"></td>
</tr>
</table>
</div>
<div id="d3" class="check">
<table id="td31">
<tr>
<td><input type="checkbox" id="c3" ></td>
</tr>
</table>
<table id="td32">
<tr>
<td><input type="text" id="t7" value="0"></td>
</tr>
<tr>
<td><input type="text" id="t8" value="0"></td>
</tr>
</table>
</div>
</body>
</html>