我想autocomplete
在单击某个按钮时打开建议菜单。怎么做?
var dropDown = $("<a class='showAll' title='Show all'/>")
.insertAfter(this.element)
.button({
icons: {
primary: "ui-icon-triangle-1-s"
},
text: false
})
.removeClass("ui-corner-all")
.addClass("ui-corner-right ui-combobox-toggle")
.click(function () {
//What I have to write here?
});
假设这个按钮在自动完成 _create 函数中。所以我现在有自动完成输入元素this.element
,我应该如何继续?
编辑:我不想调用search
事件。我只想简单地打开建议菜单。