从预先输入列表中打开弹出窗口 [英] open popover from typeahead list
本文介绍了从预先输入列表中打开弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个来自引导程序的typeahead文本字段.我想做的是:当您从预先输入列表中单击一个项目时,他们将打开一个弹出窗口,并将其放置在文本字段中.这可能吗?
I have a typeahead textfield from bootstrap. What I want to do is: When you click on an item from typeahead list they open a popover and it will be placed on the textfield. Is this possible?
我已经有一个包含onclick="alert(000)" rel="popover"
的项目.如果单击它,警报框将打开,因此它可以执行某些操作.但是弹出窗口不起作用.甚至可以通过预输入打开弹出窗口吗?
I already have an item that have onclick="alert(000)" rel="popover"
. If I click on it the alertbox will open, so it can do something. But the popover doesnt work. Is it even possible to open a popover from typeahead?
推荐答案
虽然
$('#myTypeahead').typeahead({
source: source,
updater: function(item) {
// Do something here, `item` is the selected item
return item;
}
});
这篇关于从预先输入列表中打开弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文