Hello,
I'm looking to get some help with configuring the Bassistance.de Autocomplete plugin to refresh my form based on field dependency of an entered field.
So that fields such as cities, provinces & countries are updated when a continent is chosen or vice-versa.
Using the guidelines set here:
http://docs.jquery.com/Plugins/Autocomplete#Dependencies_between_fieldsI created a the code below for this form
http://wordpressclues.com/mat/form4/and would like the form to refresh on field entry as on this form
http://wordpressclues.com/mat/airportsearch/docs/#fromcountry / #fromcontinent are the form input field IDs
fromcountries is variable which holds the data for countries from the DB
I think the problem is here as I don't know what variable to put here and have tried a lot of combination which none seem to work.
"fromcontinent: function()"
I have 6 dependencies per field that need to update for each valid field entry. Any help would be appreciated. Thanks...
$("#fromcountry").autocomplete(fromcountries, {
minChars: 0,
width: 260,
matchContains: false,
autoFill: false,
mustMatch: true,
matchContains: false,
scroll: true,
scrollHeight: 220,
selectFirst: false,
extraParams: {
fromcontinent: function() { return $("#fromcontinent").val(); }
}