我正在使用jQuery UI自动完成组合框小部件.当我在我的组合框中添加占位符时,默认情况下会打开自动完成框.
这仅在IE10及更高版本上发生.
这是我的代码:
_create: function () {
this.wrapper = $("<span>")
.addClass("custom-combobox")
.insertAfter(this.element);
this.element.hide();
this._createAutocomplete();
this._createShowAllButton();
this.input.attr("placeholder", this.element.attr('placeholder'));
},
Run Code Online (Sandbox Code Playgroud)