code: function(selectValues, triggerOnChange) {
              if(!$.isArray(selectValues)) {
                  selectValues = [selectValues];
              }
  
              for (var i = 0; i < selectValues.length; i++) {
                  var value = selectValues[i];
  
                  if (value === null || value === undefined) {
                      continue;
                  }
  
                  var $option = this.getOptionByValue(value);
                  var $checkbox = this.getInputByValue(value);
  
                  if($option === undefined || $checkbox === undefined) {
                      continue;
                  }
  
                  if (!this.options.multiple) {
                      this.deselectAll(false);
                  }
  
                  if (this.options.selectedClass) {
                      $checkbox.closest('li')
                          .addClass(this.options.selectedClass);
                  }
  
                  $checkbox.prop('checked', true);
                  $option.prop('selected', true);
  
                  if (triggerOnChange) {
                      this.options.onChange($option, true);
                  }
              }
  
              this.updateButtonText();
              this.updateSelectAll();
          }
docs: Select all options of the given values.
  
  If triggerOnChange is set to true, the on change event is triggered if
  and only if one value is passed.
  
  @param {Array} selectValues
  @param {Boolean} triggerOnChange