[jQuery] Re: Autocomplete - How to simulate a select box, where displayed value is one thing and submitted value is another

2009-10-13 Thread chrishubbard
Eric, You need to use formatItem. http://docs.jquery.com/Plugins/Autocomplete/autocomplete#url_or_dataoptions For example, let's assume that the JSON you are returning from your server script looks like (taken from the example data): [ { name: "Peter Pan", to: "pe...@pan.de" }, {

[jQuery] Re: Autocomplete - How to simulate a select box, where displayed value is one thing and submitted value is another

2009-10-06 Thread alexbodn . groups
you need a hidden field to hold the value, and play around with the result trigger. hth On Mon, Oct 5, 2009 at 23:16, benze wrote: Hi, I'm trying to figure out how to use the autocomplete jQuery plugin best to my needs.  I'm looking to replace a select box with the Autocomplete plugin, but