Home  >  Article  >  Web Front-end  >  jQuery UI Autocomplete 1.8.16 Chinese input correction code_jquery

jQuery UI Autocomplete 1.8.16 Chinese input correction code_jquery

WBOY
WBOYOriginal
2016-05-16 17:54:181048browse

Find the following code

Copy the code The code is as follows:

}).bind("blur.autocomplete ", function (c) {
if (!a.options.disabled) {
clearTimeout(a.searching);
a.closing = setTimeout(function () {
a.close( c);
a._change(c)
}, 150)
}
})

is changed to
Copy code The code is as follows:

}).bind("blur.autocomplete", function (c) {
if (!a .options.disabled) {
clearTimeout(a.searching);
a.closing = setTimeout(function () {
a.close(c);
a._change(c)
}, 150)
}
}).bind('input',function (c) {
a.search(a.item);
})

In this way, you can search immediately after typing in Chinese.
Statement:
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