Ваш код может быть как это:
$(document).ready(function(){
//1. NRI,Resident should enable initially, all other are disabled
disableAll(); $("#nri", "#resident").attr("disabled", false);
//Req 2
$("#c_b :checkbox").change(function(){
//2. NRI checked : Only Salaried and Others enable
if(isChecked("#nri")){ disableAll(); enable("#salaried, #others"); }
//3. NRI and Salaried checked : No other Enable
if(isChecked("#nri") && isChecked("#salaried")){ disableAll(); enable("#nri, #salaried"); }
//4. Resident checked : All child should enable
//what is child?
//5. Resident and Salaried checked : Govt. and Other enable
if(isChecked("#resident") && isChecked("#salaried")){ enable("#govt_employee, #others"); }
// 6. Resident and Self checked : No other Enable
if(isChecked("#resident") && isChecked("#self_employed")){ disableAll(); enable("#resident, #self_employed"); }
});
});
function disableAll(){
$("#c_b :checkbox").attr("disabled", true);
}
function isChecked(id){
return $(id).is(":checked");
}
function enable(sel){
$(sel).attr("disabled", false);
}
Я не понял вашего четвертого требования.
Надеюсь, это поможет