code: public boolean isSelected(String id) {
          for (JQMCheckbox box : checks) {
              if (id.equals(box.getId()))
                  return box.isChecked();
          }
          return false;
      }
docs: Returns true if the checkbox with the given id is selected.
  
  @param id - the id of the checkbox to test