[jQuery] Re: JQuery Autocomplete - conditional autocompletion between fields

2009-06-29 Thread Tom Worster
to set extraParams dynamically to the current value of other dom elements, assign a function to the extraParams that retrieves the value from the dom, e.g. $("#state").autocomplete(url, { extraParams: { town: function() { return $("#town").val(); } } }); see http://docs.jquery.

[jQuery] Re: JQuery Autocomplete - conditional autocompletion between fields

2009-06-28 Thread MorningZ
Use AutoComplete's "extraParams" hook http://docs.jquery.com/Plugins/Autocomplete/autocomplete#toptions so it would be like: $("your state search textbox").autocomplete( "/ajax/location.php", { extraParams: { type: $("#state").val() } } ); On Jun 26, 12:34 pm, 01101010001010001010 w