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' } } );