title: Checkbox Filter with Multiple Condition using Jquery
body: <pre><code>&lt;div id="c_b" class="checkbox-elemet"&gt;
      &lt;div class="checkbox"&gt;
          &lt;input type="checkbox" value="nri" id="nri" name="status[]"&gt;&lt;label for="nri"&gt;NRI&lt;/label&gt;&lt;/div&gt;
          &lt;div class="checkbox"&gt;&lt;input type="checkbox" id="resident" value="resident" name="status[]"&gt;&lt;label for="resident"&gt;Resident&lt;/label&gt;&lt;/div&gt;
          &lt;div class="checkbox"&gt;&lt;input type="checkbox" disabled="true" id="salaried" value="salaried" name="status[]"&gt;&lt;label for="salaried"&gt;Salaried&lt;/label&gt;&lt;/div&gt;
          &lt;div class="checkbox"&gt;&lt;input type="checkbox" disabled="true" id="self_employed" value="self_employed" name="status[]"&gt;&lt;label for="self_employed"&gt;Self&lt;/label&gt;&lt;/div&gt;
          &lt;div class="checkbox"&gt;&lt;input type="checkbox" disabled="true" id="govt_employee" value="govt_employee" name="status[]"&gt;&lt;label for="govt_employee"&gt;Govt.&lt;/label&gt;&lt;/div&gt;
          &lt;div class="checkbox"&gt;&lt;input type="checkbox" disabled="true" id="others" value="others" name="status[]"&gt;&lt;label for="others"&gt;Others&lt;/label&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Following condtions sholud fulfill for enabling each checkboxes,</p>
  
  <ol>
  <li>NRI,Resident should enable
  initially, all other are disabled</li>
  <li>NRI checked : Only Salaried and
  Others enable</li>
  <li>NRI and Salaried checked : No other
  Enable</li>
  <li>Resident checked : Salaried, Govt, Other, Self should
  enable</li>
  <li>Resident and Salaried checked :
  Govt. and Other enable</li>
  <li>Resident and Self checked : No other
  Enable</li>
  </ol>
  
  <p>Anybody can help me with a simple solution.</p>