Hi, I have a rather specific question about how to accomplish a type of search with autocomplete.
I need the autocomplete to search only the beginning of the words (like setting matchContains = false in the bassistance version of autocomplete) but also to search only the first and last words of the strings in the data array.
For example, each string is formatted as 'Abbotsford: Abbotsford CANADA (YXX)'. On the fly I need to only match searches for either "abbotsford" or "YXX", and ignore everything else. I know how to cut the string up, I just can't get it to work right in the plugin.
So what I have is essentially
s1 = s.substring(0,x);
s2 = s.substring((s.length - 4), (s.length -1));
and I need to match only the start of either of these on each query. Help?