<!DOCTYPE HTML><HTML><Head><Metaname= "Content-type"content= "text/html; CHARSET=GBK"><title>JQuery UI Autocomplete-Default features</title><Linkrel= "stylesheet"href= "//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"><Scriptsrc= "//code.jquery.com/jquery-1.10.2.js"></Script><Scriptsrc= "//code.jquery.com/ui/1.11.4/jquery-ui.js"></Script><Linkrel= "stylesheet"href= "/resources/demos/style.css"><Script> $(function() { //here the data is in the form of an array varAvailabletags= [ "ActionScript", "AppleScript", "ASP", "BASIC", "C", "C + +", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", "Haskell", "Java", "JavaScript", "Lisp", "Perl", "PHP", "Python", "Ruby", "Scala", "Scheme","China","National" ]; $("#tags"). AutoComplete ({source:availabletags}); });</Script></Head><Body> <Divclass= "Ui-widget"> <label for= "tags">Retrieval:</label> <inputID= "tags"> </Div></Body></HTML>
:
Reference:
http://jqueryui.com/autocomplete/
Http://www.cnblogs.com/lwme/archive/2012/02/12/jquery-ui-autocomplete.html
The main purpose is to combine with the automatic prompting function of SOLR search.
JQuery AutoComplete-Default