diff --git a/jquery.minimalect.js b/jquery.minimalect.js index f4c3409..b63dfc8 100644 --- a/jquery.minimalect.js +++ b/jquery.minimalect.js @@ -92,13 +92,18 @@ if(this.element.prop("disabled")) this.wrapper.addClass(op.class_disabled); - // create and add the input - this.input = $( - ''+ - (this.element.find("option[selected]").html() || "")+ + ' data-placeholder="' + data_placeholder + + '" ' + (this.element.is('[tabindex]') ? ('tabindex=' + this.element.attr('tabindex')) : '') + '>' + + (data_placeholder_html || "") + '' ).appendTo(this.wrapper);