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.
is possible? i'm using jquery ui autocomplete accomplish feature. thanks.
try twitter typeahead : https://github.com/twitter/typeahead.js
it works jquery
Comments
Post a Comment