Programmatically triggering typeahead.js result display

后端 未结 17 1841
余生分开走
余生分开走 2020-11-30 05:01

I am using Twitter\'s typeahead.js (https://github.com/twitter/typeahead.js/) on an input field which is pre filled from a query string. After loading the page, i\'d like to

17条回答
  •  渐次进展
    2020-11-30 05:06

    This should work with the "old" bootstrap typeahead plugin:

    $(".typeahead").eq(0).trigger("keyup");
    

    Haven't tested with IE unfortunately... Don't know about the new typeahead plugin...

提交回复
热议问题