autocomplete的参数 minChars设置为0时,默认要双击文本框才会出现提示,我现在想要单击就出现提示该怎么改???
重写AUTOCOMPLATE代码里的这段代码
[code="js"] }).click(function() {
// show select when clicking in a focused field
if ( hasFocus++ > 1 && !select.visible() ) {
onChange(0, true);
}
})[/code]
为
[code="js"] }).click(function() {
// show select when clicking in a focused field
if ( ++hasFocus> 1 && !select.visible() ) {
onChange(0, true);
}
})[/code]