PHP version of jquery autocomplete plug-in (autocomplete) application_jquery
WBOYOriginal
2016-05-16 18:39:20993browse
I need to use the auto-prompt function in my work. Haha, I am a js novice, so I searched on Baidu and found a .net version of the auto-complete function developed with jquery and its plug-in autocomplete, so I downloaded it and changed it to the php version. , and added functions such as support for selecting text up/down, put it up and share it, it is purely physical work. . . :) 1. Download the jquery library, URL: http://jquery.com/; 2. Download the jquery autocomplete plug-in or directly use the file provided in my attachment. The downloaded file needs to be modified. In order to support up/down selection of text and solve Chinese garbled characters, the problem of solving Chinese garbled characters has been mentioned online, which is to change the encodeURI in the file to escape, and change the keydown to keyup. As for supporting up/downward Please refer to the attachment to select the text below; 3. The following is the calling code: auto.html content:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn