您的位置:首页 > Web前端 > JQuery

jquery ui 自動完成對中文字搜尋Bug(firefox)

2011-02-18 21:05 330 查看
jQuery UI 版本:1.8.9

主要原因是中文輸入時不會觸發原本在autocomplete 榜定的keydown事件。
try this one:
//fixed firefox and ie in IME bug
jQuery('#searchkey').bind( "input.autocomplete", function(){
$(this).trigger('keydown.autocomplete');

})



参考:http://groups.google.com/group/jquery-/browse_thread/thread/8f34129edc5da55e
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: