javascript - Search anywhere in the content instead of starting -


this example taken mdn.

<input list="browsers" /> <datalist id="browsers">   <option value="chrome">   <option value="firefox">   <option value="internet explorer">   <option value="opera">   <option value="safari"> </datalist> 

currently, when type e in input element, no suggestion appear. want suggestions displayed if input value element anywhere in option value instead of starting value.

try in jsbin

is possible? i'm using jquery ui autocomplete accomplish feature. thanks.

try twitter typeahead : https://github.com/twitter/typeahead.js

it works jquery


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -