Try this successor to Dylan's plugin: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
Then use a function for the extraParam option: extraParams: { city: function() { return $("#city").val(); } } Jörn On 7/18/08, emeade <[EMAIL PROTECTED]> wrote: > > I have 2 autocomplete fields (using Dylan Verheul's autocomplete > plugin)...one for city and one for zipcode. I'd like to pass the value > of the zipcode field as an extraParam of the city autocomplete and > vice versa. My problem is I can't seem to figure out how to get the > current value of either field (they are hardcoded in the example > below). Any idea how I get the values? > > These are my autocompletes... > > $("#city").autocomplete( > "index.cfm?event=household.proxy_cities", > { > delay:10, > minChars:2, > matchSubset:1, > matchContains:1, > cacheLength:10, > onItemSelect:selectItem, > onFindValue:findValue, > formatItem:formatItem, > autoFill:true, > extraParams: { > zipcode: 43212 > } > } > ); > > > > $("#zip").autocomplete( > "index.cfm?event=household.proxy_zipcode", > { > delay:10, > minChars:2, > matchSubset:1, > matchContains:1, > cacheLength:10, > onItemSelect:selectItem, > onFindValue:findValue, > formatItem:formatItem, > autoFill:true, > extraParams: { > city: 'columbus' > } > } > ); >