これを理解するのに苦労しています。2 番目と 3 番目の両方のチェックボックスがオフになっている場合td
は、4 番目のチェックボックスを無効にします。
$('#allergies tbody tr').each(function () {
if ($('td:eq(1) input[type="checkbox"]:not(:checked)', $(this)).length > 0
&& $('td:eq(2) input[type="checkbox"]:not(:checked)', $(this)).length > 0) {
$("td:eq(3) input", $(this)).attr('disabled', false);
}
});