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(
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
2 matches
Mail list logo