[jQuery] Re: Question: Using Autocomplete to pass the fields name to query URL

2008-10-17 Thread The Hamburgler
")); } ).autocomplete("server.php", { >                        extraParams: { >                        fieldname: function() { return $(this).attr("name"); } >                         } >                 }); > > I hope this helps > > Cheers > > On Oct 16, 1:59 pm, The

[jQuery] Question: Using Autocomplete to pass the fields name to query URL

2008-10-16 Thread The Hamburgler
Hi, I wish to pass an extra parameter to the Autocomplete query URL that will determine the name of the current input field. The URL will then know what field is requesting the data and can return the relevant data. E.g. It could be list of countries or a group of surnames already in the database