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/