简体   繁体   中英

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.

1个

2

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.

  $('.first_goal_box').typeahead([
    {
      name: 'Scorers',
      prefetch: './dashboard.json'
    }

  ]);

I switched it over to Typeahead for Bootstrap 3 .

$.get('./dashboard.json'. function(data){
  $(".typeahead").typeahead({ source:data});
},'json');

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM