[英]Typeahead - Bootstrap 3 - Doesn't pass selected typeahead
As below you can see when I select a typeahead option and click submit, it does not save it and indeed doesn't pass it at all when I raise it. 如下所示,您可以看到当我选择一个提前输入选项并单击提交时,它不会保存它,并且在举起它时根本不会通过它。
This may be linked to a problem I have occasionally of two typeaheads appearing, I am not sure. 这可能与我偶尔会出现两次预输入的问题有关,我不确定。 I am also allowing the params. 我也允许参数。 It works when I remove the JS below. 当我删除下面的JS时,它起作用。
$('.first_goal_box').typeahead([
{
name: 'Scorers',
prefetch: './dashboard.json'
}
]);
I switched it over to Typeahead for Bootstrap 3 . 我将其切换到Bootstrap 3的Typeahead 。
$.get('./dashboard.json'. function(data){
$(".typeahead").typeahead({ source:data});
},'json');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.