myocean,
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script>
$(function () {
$("table").on("click", "input:checkbox", function () {
var parent = $(this).parents("tr");
$("input:checkbox", parent).prop({
"checked": this.checked
})
});
})
</script>
</head>
<body>
<table>
<tr>
<td><input type="checkbox" name="aa"></td>
<td><input type="checkbox" name="bb"></td>
</tr>
<tr>
<td><input type="checkbox" name="cc"></td>
<td><input type="checkbox" name="dd"></td>
</tr>
</table>
</body>
</html>