Hello,
I am using the bassistance version of Jquery autocomplete as:
1. I have one .js file that contains:
var cities= [
"Anaa",
"Arrabury",
"Al Arish",
"Ad Dabbah",
"Les Salines",
"Apalachicola Mnpl",
"Arapoti",
"Merzbruck",
"Arraias"
];
2.
$("#suggest14").autocomplete(cities, {
matchContains: true,
scroll: false,
minChars: 2, maxItemsToShow:10,
});
that works ok.
But i have a couple more var that i want the plugin to search..
e.g var id=
[
"1",
"2"
];
etc.
how can I use the other var as well?
e.g
$("#suggest14").autocomplete(cities,id, {
doesnt work.
Also how can I return only the ID to the text field input after the selection by the user?
e.g
the search:
1 Athens Greece
to return in the field as
1
thank you very much,
/N