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/
精彩评论