<input type="checkbox" onclick="$('table tr > td:first-child input:checkbox').prop('checked', $(this).prop('checked'))">