Select row by checkbox
HTML
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<table>
<tr>
<td><input type="checkbox" id="1_1" /></td>
<td><input type="checkbox" id="1_2" /></td>
<td><input type="checkbox" id="1_3" /></td>
</tr>
<tr>
<td><input type="checkbox" id="2_1" /></td>
<td><input type="checkbox" id="2_2" /></td>
<td><input type="checkbox" id="2_3" /></td>
</tr>
</table>
JavaScript
$('tr td:first-child input:checkbox').click(function (){
var thisCheck = $(this);
if (thisCheck.is(':checked')){ thisCheck.parent().parent().find('input:checkbox').attr('checked','checked');
}
else{
thisCheck.parent().parent().find('input:checkbox').removeAttr('checked','checked');
}
});