How to make jqueryui autocomplete actually autocomplete?
You would expect AutoComplete to "complete" the phrase you are typing, but instead it "sugge开发者_如何学编程sts" based on the characters you are typing.
For example: http://jqueryui.com/demos/autocomplete/
When you type "a" in the input box:
I expect it to "complete" and display: ActionScript AppleScript
Actually, it "suggests" and displays any word that contains that letter.
Here's an example on how you would expect it to work: http://developer.yahoo.com/yui/examples/autocomplete/ac_basic_array.html
How would you get jQueryUI autocomplete to work like that?
Consider using the (deprecated, but still usefull) jQuery autocomplete plugin which does support what you want using the autoFill
option
精彩评论