I thought I had it working, but I don't, I am still having issues. I have two lookups on the same form, and the data is returned fine. data[0] is the text description and data[1] is the primary key of the lookup table. I am trying to pass the values to some hidden fields. I am using the code block you gave me, and it works with one call, but not two. Why doesn't the following work? The ignore1 value gets populated every time, but the ignore2 value never gets populated for some reason.
$("#unitname").result(function(event, data, formatted) { $("#ignore1").value = $(this).next().val(data[0]); $("#ignore2").value = $(this).next().val(data[1]); }); I tired calling Sam Collet's jquery.select.js plugin within the code block orginally to populate select control options on the form, and this syntax returns the [object Object] reference. Why wouldn't this work? $("#unitname").result(function(event, data, formatted) { $("#additional_units").addOption($(this).next().val(data[1]),$ (this).next().val(data[0])); }); I obviously don't get the jQuery 'way' yet, and I apologize if I am asking basic questions that are obvious to everyone else. I have all this working using Dan Switzer's implementation and a combo of procedural js and jquery syntax, but i am trying to get it work here to, using all jquery stuff, so that we are onboard when this plugin becomes the primary implementation. Regards, Jeff On May 2, 5:00 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > JeffFleitzschrieb:> Nevermind, figured it out, thanks. > > Cool :-) > > -- > Jörn Zaefferer > > http://bassistance.de