【发布时间】:2015-03-23 11:02:48
【问题描述】:
我正在使用 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'));
},
【问题讨论】:
-
请写一些关于这个问题的更多细节。
标签: jquery jquery-ui autocomplete placeholder