autocomplete的参数 minChars设置为0时,默认要双击文本框才会出现提示,修改以下代码可单击出现提示框:
from:
from:
- }).click(function() {
- // show select when clicking in a focused field
- if ( hasFocus++ > 1 && !select.visible() ) {
- onChange(0, true);
- }
- })
- }).click(function() {
- // show select when clicking in a focused field
- if ( ++hasFocus> 1 && !select.visible() ) {
- onChange(0, true);
- }
- )
转载自:http://pengfei.w.blog.163.com/blog/static/98557099201102561526502/
本文介绍如何修改autocomplete组件的参数minChars为0,使得用户在聚焦输入框时只需单击即可触发提示框,提升用户体验。
516

被折叠的 条评论
为什么被折叠?



