con*_*att 2 jquery autocomplete jquery-autocomplete jquery-ui-autocomplete
我正在使用自动完成功能来获取一小组值.我希望当用户专注于输入框(使用键盘或鼠标)而不是等待他们输入时,立即显示"自动完成"源值.
如何在焦点处立即显示源值?
谢谢,
$("#cityInput").autocomplete({
minLength: 0, // With not that many cities, require at no characters before showing autocomplete
source: getJson(),
// plug-in to the select event in order to keep KnockOut informed about the
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
701 次 |
| 最近记录: |