Home > Web Front-end > JS Tutorial > body text

firefox下jQuery UI Autocomplete 1.8.*中文输入修正方法_jquery

WBOY
Release: 2016-05-16 17:49:49
Original
809 people have browsed it

找到以下代码:

复制代码 代码如下:

.bind( "blur.autocomplete", function( event ) {
                if ( self.options.disabled ) {
                    return;
                }

                clearTimeout( self.searching );
                // clicks on the menu (or a button to trigger a search) will cause a blur event
                self.closing = setTimeout(function() {
                    self.close( event );
                    self._change( event );
                }, 150 );
            });


替换成:
复制代码 代码如下:

.bind( "blur.autocomplete", function( event ) {
                if ( self.options.disabled ) {
                    return;
                }

                clearTimeout( self.searching );
                // clicks on the menu (or a button to trigger a search) will cause a blur event
                self.closing = setTimeout(function() {
                    self.close( event );
                    self._change( event );
                }, 150 );
            }).bind('input',function (c) {//jQuery UI Autocomplete 1.8.*中文输入修正
                self.search(self.item);
            });


经过经验,在1.8.16-1.8.23(目前最新版本),均可实现
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!