title: Check the state of multiple checkboxes in nested table row using JQuery before action
body: <p>I have a table that contains a list of recipients for gifts.  Each recipient can have one or more gifts listed for them.  I do this using a nested set of rows (one nested row in a table cell per gift) in a table cell. </p>
  
  <p>Each gift has four statuses (shown through checkboxes) of Selected, Checked In, Out for Delivery, Delivered. </p>
  
  <p>I need to hide the main row for the recipient when all of the checkboxes for a specific status are checked. </p>
  
  <p>So, if I want to see only the recipients where a gift is not yet checked in, I would want to still see any recipients where only 1 gift may still be unchecked for 'Checked In' status.</p>
  
  <p>I have the following to hide and show the rows now:</p>
  
  <pre><code>if (state === true) {
          switch(colId) {
              case "selectedFilter":
                  $('input:checkbox.isSelected:not(:checked)').closest('.trMainData').hide();
                  break;
              case "selectedFilterUnchecked":
                  $('input:checkbox.isSelected:checked').closest('.trMainData').hide();
                  break;
              case "checkedInFilter":
                  $('input:checkbox.isCheckedIn:not(:checked)').closest('.trMainData').hide();
                  break;
              case "checkedInFilterUnchecked":
                  $('input:checkbox.isCheckedIn:checked').closest('.trMainData').hide();
                  break;
              case "outForDeliveryFilter":
                  $('input:checkbox.isOutForDelivery:not(:checked)').closest('.trMainData').hide();
                  break;
              case "outForDeliveryFilterUnchecked":
                  $('input:checkbox.isOutForDelivery:checked').closest('.trMainData').hide();
                  break;
          }
      } else if (state === false) {
          $('table tr.trMainData:hidden').show();
      }
  </code></pre>
  
  <p>Where the 'state' is the state of a checkbox filter being clicked by the user (true or false) and 'trMainData' is the class on the main row for the recipients.</p>
  
  <p>The issue is that if I set only 1 gift out of 2 as Checked In, then the entire recipient row is hidden, including the gift that has not yet been checked in.</p>
  
  <p>Any help and suggestions, as always are greatly appreciated.</p>