Reputation: 17530
I want to have a auto suggest textbox where the tags will be present in the array in the javascript, so no request to server.
Upvotes: 1
Views: 5487
Reputation: 130
Create an array of values then (if using jQuery) use .inArray. See here: http://api.jquery.com/jQuery.inArray/
Upvotes: 0
Reputation: 14049
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
Upvotes: 4
Reputation: 38543
Most autosuggest plugins support this. I use this one and it works great: http://code.drewwilson.com/entry/autosuggest-jquery-plugin
Upvotes: 1