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 - Unusual behaviour when drawing lots of images onto a large canvas -

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

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