I have been using Dan's version of autocomplete successfully on some CF forms where I am querying some lookup tables, and passing primary key values on to the action pages instead of the text description for SQL inserts. I am to implement the same functionality in Jörn's version, and cannot figure it out. I have no problem with returning the text value, but I can't figure out how to capture the primary key and pass it to a hidden field. I looked at Jörn's php example, but since I don't use PHP, and don't fully grok JQuery yet, I am having problems. I am pretty sure the key to what I want exists inthe following code block, but I don't know how to call the result. I don't see these objects being called in the sample index.html file. I need to get the result. data[1] value to bind a hidden field on the form. Can somebody give me a clue as to what I need to do?
$("#suggest2").result(function(event, data, formatted) { $(this).find("..+/input").val(data[1]); }); Jeff