jQuery autocomplete 1.1: Show All Data on focus
问题 How to make this extension show all data on focus?. I have tried to change minChars to 0 but it only show when the input double clicked. $("#month").autocomplete(months, { minChars: 0, max: 12, autoFill: true, mustMatch: true, matchContains: false, scrollHeight: 220, formatItem: function(data, i, total) { // don't show the current month in the list of values (for whatever reason) if ( data[0] == months[new Date().getMonth()] ) return false; return data[0]; } }); 回答1: You need to bind a focus