小编use*_*062的帖子

Bootstrap - 显示焦点上的所有Typeahead项目

当文本输入(id ="Questions")获得焦点时,我想显示所有Typeahead项目.我该怎么做?

使用Javascript:

function SetTypeahead() {
    $("#Questions").typeahead({
        minLength: 0,
        source: [
                "Q1?",
                "Q2?",
                "Q3?",
                "@4?"
        ]
    });
}
Run Code Online (Sandbox Code Playgroud)

typeahead twitter-bootstrap

19
推荐指数
2
解决办法
3万
查看次数

标签 统计

twitter-bootstrap ×1

typeahead ×1