开发者

Auto suggest textbox client-side - jQuery

I want to have a auto suggest textbox where the tags will be present in the array in the ja开发者_Python百科vascript, so no request to server.


check out JQuery UI Autocomplete.

This is the link to the demo: http://jqueryui.com/demos/autocomplete/

The first demo 'Default Functionality' addresses your problem


Most autosuggest plugins support this. I use this one and it works great: http://code.drewwilson.com/entry/autosuggest-jquery-plugin


I got this

http://docs.jquery.com/Plugins/autocomplete


Create an array of values then (if using jQuery) use .inArray. See here: http://api.jquery.com/jQuery.inArray/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜