Jquery 如何将超链接放置在引导类型上?

Jquery 如何将超链接放置在引导类型上?,jquery,twitter-bootstrap,typeahead.js,Jquery,Twitter Bootstrap,Typeahead.js,我需要在每个typeahead自动建议值上放置超链接,就像我们搜索“los angeles”,然后在“los angeles”选项上打开我的losangele.html一样。我的打字代码如下 // Multiple DataSet $('input.countries-cities').typeahead([ { name: 'Canada', local: ["Toronto", "Mon

我需要在每个typeahead自动建议值上放置超链接,就像我们搜索“los angeles”,然后在“los angeles”选项上打开我的
losangele.html
一样。我的打字代码如下

// Multiple DataSet

        $('input.countries-cities').typeahead([
            {
                name: 'Canada',
                local: ["Toronto", "Montreal", "Calgary", "Ottawa", "Edmonton", "Peterborough"],
                header: '<h3>Canada</h3>'

            },
            {
                name: 'United States',
                local: ["New York", "Los Angeles", "Chicago", "Houston", "Philadelphia"],
                header: '<h3>United States</h3>'

            }

        ]);
//多数据集
$('input.countries.cities')。键入([
{
名称:‘加拿大’,
本地:[“多伦多”、“蒙特利尔”、“卡尔加里”、“渥太华”、“埃德蒙顿”、“彼得伯勒”],
标题:“加拿大”
},
{
名称:'美国',
本地:[“纽约”、“洛杉矶”、“芝加哥”、“休斯顿”、“费城”],
标题:“美国”
}
]);
我的html是这样的

<div style="float: left; width: 500px">
                <h4>Search Your Countries or City</h4>
                <input class="countries-cities typeahead" type="text" placeholder="Countries And Cities">
            </div>

搜索你的国家或城市

默认情况下会放置超链接,我认为您必须修改源以更新href值。你能提供一把小提琴来演奏吗?你可以在这里查看完整的代码