[jQuery] Re: [autocomplete] append results to an input field

2008-08-31 Thread Mattl
Thanks - This is what I've ended up with: $(document).ready(function(){ $("#lotno1").autocomplete("../js/autocomplete.php", { mustMatch: true, max: 30, extraParams: { SaleNo: function() { return $("#salenumber").val(); } } }); $("#lotno1").result(function(

[jQuery] Re: [autocomplete] append results to an input field

2008-08-31 Thread Giovanni Battista Lenoci
Mattl ha scritto: $(this).parent().next().find("input").val(data[1]); The error is in this line: $(this) -> refers to the input with the autocomplete parent -> refers to the containing the input fields next-> refers to the next after the that fired the autocompl