Hi Alex, Thank you very much for the response, but I'm pretty new to this. Done a LOT of vanilla js, but not much jquery. Could you please help me with the results trigger?
I'm assuming in doc.ready, do something like this: $("#my_field").result (function(event, data, formatted) { // do something here? but this isn't on-load, really. }); Thanks again, Erick On Sep 10, 8:37 pm, alexbodn.gro...@gmail.com wrote: > preset "Two" as value for autocomplete field, and the 2 for the code field. > then add a results trigger to set the value param received to the code field. > > > > On Thu, Sep 10, 2009 at 19:42, Erick <erickwo...@gmail.com> wrote: > > > I'm using the JQuery Autocomplete plug-in and having a great deal of > > difficulty setting the value of the field either in advance (before > > making it an autocomplete) or after page load. > > > To start, I have a standard text box and was just echoing a value from > > php into the value="" param. Then, on page load, I set the input to > > autocomplete. That would wipe out the value I had entered. > > > Next I tried setting it after setting the input as an autocomplete. > > That looked like it worked, but it really doesn't sync to the values > > in the search list. > > > For more info, I am using a value/id array as the search values. For > > those unfamiliar, the array is structured like: > > [ ['One',1], ['Two',2], ['Three',3] ] > > > The autocomplete functionality works great and result gives me the ID, > > I just cannot seem to figure out how to preset the value to 2 and > > display 'Two', for example. > > > Any help greatly appreciated! > > > Erick > > -- > alex > > smime.p7s > < 1KViewDownload