code: function TagsInput(element, options) {
      this.isInit = true;
      this.itemsArray = [];
  
      this.$element = $(element);
      this.$element.hide();
  
      this.isSelect = (element.tagName === 'SELECT');
      this.multiple = (this.isSelect && element.hasAttribute('multiple'));
      this.objectItems = options && options.itemValue;
      this.placeholderText = element.hasAttribute('placeholder') ? this.$element.attr('placeholder') : '';
      this.inputSize = Math.max(1, this.placeholderText.length);
  
      this.$container = $('<div class="bootstrap-tagsinput"></div>');
      this.$input = $('<input type="text" placeholder="' + this.placeholderText + '"/>').appendTo(this.$container);
  
      this.$element.before(this.$container);
  
      this.build(options);
      this.isInit = false;
    }
docs: Constructor function