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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

javascript - Chart.js - setting tooltip z-index -

how can i manage url using .htaccess in php? -