开发者

How to make jqueryui autocomplete actually autocomplete?

开发者 https://www.devze.com 2023-02-10 18:44 出处:网络
You would expect AutoComplete to \"complete\" the phrase you are typing, but instead it \"sugge开发者_如何学编程sts\" based on the characters you are typing.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消