code: function setCheckbox (input, value) {
    if (!value || value === "true" || value === "on") {
      value = "yes";
    }
    input.val([value]);
  }
docs: Checks or unchecks the given checkbox, based on the given value.
  
  @param {jQuery} input
  @param {*} value