This is generally used to enhance the search function and increase the user experience on the Internet. The auto-Prompt function is required in work. Haha, I am a js dish, So Baidu finds a plug-in developed with jquery AND ITS autocomplete. net version of the Automatic completion function, so down to change to the php version, and added support for up/down select text and other features, put up to share, pure physical activity... :)
1. Download jquery library, URL: http://jquery.com /;
2. Download The jquery autocomplete plug-in or directly use the files provided in my attachment. You need to modify some content of the downloaded files to select text up/down and solve Chinese garbled characters, as mentioned on the internet, encodeURI in the file can be changed to escape, and keydown can be changed to keyup. For the support for selecting up/down texts, see the attachment;
3. The following is the call code:
Auto.html content:
The Code is as follows: