jQuery ui 组合框在 IE 10 中默认打开

jQuery ui combo-box opens on default in IE 10

我正在使用 jQuery UI 自动完成功能在我的 UI 中显示组合框。我引用了以下 url http://jqueryui.com/autocomplete/#combobox 来呈现 comboBoxes.For 我的下拉菜单 ID 为 "myComboBox",我已经使用以下内容将组合框设置为在页面加载时聚焦。

$('#myComboBox').next().find('input').focus();

这在 chrome 和 IE 9 中工作正常,但在 IE 10 中,组合框默认在用户选择之前打开。 IE 版本 10

中的这个特定错误是否有任何解决方法

根据 的回答,您需要尝试将 focus 添加到您的 autocomplete 然后 blur 它类似于

_create: function () {
         this.input.focus().blur();
},

$('#myComboBox').next().find('input').focus().blur();