GitHub
HTTPS://github.com/pixabay/jquery-autocomplete/blob/master/demo.html
Website Demo
HTTPS://goodies.pixabay.com/jquery/auto-complete/demo.html
Cdn:
<src= '//cdn.bootcss.com/jquery-autocomplete/1.0.7/jquery.auto-complete.min.js ' ></script><hrefrel = ' stylesheet '>
My Demo:
Parameter 1: term input for text box
Parameter 2:suggest is a core function that adds an array of strings to the AutoComplete list
$(function(){ $(' #exampleInputAmount '). AutoComplete ({minchars:1, Source:function(term, suggest) { term=term.tolowercase (); varchoices = [' ActionScript ', ' AppleScript ', ' Asp ', ' Assembly ', ' BASIC ', ' Batch ', ' C ', ' C + + ', ' CSS ', ' Clojure ', ' COBOL ', ' Col ' Dfusion ', ' Erlang ', ' Fortran ', ' Groovy ', ' Haskell ', ' HTML ', ' Java ', ' JavaScript ', ' Lisp ', ' Perl ', ' PHP ', ' PowerShell ', ' Py ' Thon ', ' Ruby ', ' Scala ', ' Scheme ', ' SQL ', ' TeX ', ' XML ']; varSuggestions = []; for(i=0;i<choices.length;i++) if(~choices[i].tolowercase (). IndexOf (term)) Suggestions.push (Choices[i]); Suggest (suggestions); } });})
jquery AutoComplete Plugin