I'm using Twitter Bootstrap's Jquery Typeahead plugin .
I've integrated it, adding the appropriate .js file, plus setting the data-items
, data-source
and data-provide
values for the desired <input>
field.
<input data-provide='typeahead'
data-items='4'
data-source='["Alabama","Colorado","Texas"]'
type='text'
name='someName'
id='someId'>
It works. The thing is that when the list pops down, I cannot navigate using the arrows (up, down) - as in the example.
What am I doing wrong???
UPDATE : Seems like it's a bug regarding Firefox (I now notice it does work under Chrome); any ideas on how this could be solved?
This will solve your problem.
You can edit bootstrap-typeahead.js line 171
if ($.browser.webkit || $.browser.msie) {
to this
if ($.browser.webkit || $.browser.msie || $.browser.mozilla)
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.