code: function (id, $elem) {
              if($elem == undefined){
                  $elem = this.$container.find('.pc-list li[data-id="' + id + '"]');
  
                  if($elem.length == 0){
                      console.log('Picker - ID to select not found!');
                      return;
                  }
              }
  
              if(this.config.multiple) {
                  this.$container.prepend(this._createElement($elem));
                  $elem.remove();
  
                  var reachedLimit = this.config.limit && this.$container.find(".pc-element:not(.pc-trigger)").length >= this.config.limit;
  
                  if(this.config.search){
                      this.currentData = this.currentData.filter(function (value) {
                          return value.id != id;
                      });
  
                      if(this.currentData.length == 0 || reachedLimit){
                          this.$container.find(".pc-trigger").hide();
                      }
                  }else if(this.$container.find(".pc-list li").length == 0 || reachedLimit) {
                      this.$container.find(".pc-trigger").hide();
                  }
              }else{
                  this.$elem.find("option").removeAttr("selected");
  
                  if (this.config.coloring[id]) {
                      this.$container.find(".pc-trigger").removeClass().addClass(this.config.coloring[selectedId] + " pc-trigger pc-element").contents().first().replaceWith($elem.text());
                  } else {
                      this.$container.find(".pc-trigger").contents().first().replaceWith($elem.text());
                  }
              }
  
              this.$elem.find("option[value='" + id + "']").attr("selected", "selected");
  
          }
docs: ////////////////////////////////////////// //////////// Private methods////////////// //////////////////////////////////////////