Now I see that, and I have played around with it, but that requires the species to show in the results, which I don't want. :/
On Aug 23, 8:10 pm, "Dylan Verheul" <[EMAIL PROTECTED]> wrote: > On 8/23/07, inVINCable <[EMAIL PROTECTED]> wrote: > > > I am new from prototype and scriptaculous and have been puzzled all > > day by trying to figure out this autocomplete business with jQuery. I > > have searched all over including the plugins page on the jquery > > website and cannot find what I need, an autocomplete field that will > > get the ID of the selection without showing it. A good example would > > be let's say we take the id a company was assigned to, say 3434. When > > the user clicks on that company, I want 3434 to be submitted with the > > form, but NOT in the actual text box, or anywhere visible. I was able > > to do this in prototype by assigned an id to the <li> that is equal to > > the ID, then the id is taken from the <li> element of the selection > > then submitted as a hidden form element. > > Unless I misunderstand, The example you mention is widely present in > the various autocomplete examples (most of which are improvements of > one and the same script, and a rewrite). > > Onhttp://www.dyve.net/jquery/?autocomplete, start typing some letters > (for example: 'com') in the search box. Some bird species will appear. > Select one, and the page will show you the scientific name. The > parameter used is onSelectItem. Substitute bird name = company name, > scientific name = id, and you should be good to go. > > Jörn's rewrite (http://jquery.bassistance.de/autocomplete/) offers > similar examples. > > > ( ... ) I really would like to avoid using > > prototype/scripaculous but I might have to if there is no solution via > > jQuery :/ > > You aren't blackmailing us are you? ;-) > > Good luck with the autocomplete. > > Dylan