online/src/js/querystring.js
function setCheckbox (input, value) {
  if (!value || value === "true" || value === "on") {
    value = "yes";
  }
  input.val([value]);
}
function setCheckbox (input, value) {
  if (!value || value === "true" || value === "on") {
    value = "yes";
  }
  input.val([value]);
}
function setCheckbox ( input , value ) { if ( ! value || value === "true" || value === "on" ) { value = "yes" ; } input . val ( [ value ] ) ; }
Checks or unchecks the given checkbox, based on the given value.

@param {jQuery} input
@param {*} value
Checks or unchecks the given checkbox based on the given value .