DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> JavaScript入門知識 >> jQuery入門知識 >> JQuery特效代碼 >> firefox下jQuery UI Autocomplete 1.8.*中文輸入修正方法
firefox下jQuery UI Autocomplete 1.8.*中文輸入修正方法
編輯:JQuery特效代碼     

找到以下代碼:
. 代碼如下:
.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(目前最新版本),均可實現

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved