How to filter your jquery autocomplete data while typing
问题 So far I have the following var aCleanData = ['aaa','aab','faa','fff','ffb','fgh','mmm','maa']; $('#my-input').autocomplete({ source:aCleanData, minLength:2 }); Currently if you type aa , aaa,aab,faa,maa will show. What I would like to do is when the user types ff the data that is shown will be the fff,ffb data. Basically, only what is typed should be matched from the first character onwards. This should be recursive. When user types fg , fff,ffb should disapear and only fgh should appear.