jqueryui autocomplete: lists entries with search terms in middle
I am using jqueryui autocomplete widget for autocompleting a 'country' field but I am facing an issue. Suppose the user enters "in", I want the jqueryui to list countries like 'india', 'indonesia' which start with 'in', but it also lists the countries which have 'in' somewhere in the name (like: argentina). How can I solve this issue?

    jQuery(".autocomplete").autocomplete({
        source: CountrySuggestions, //CountrySuggestions is an array in javascript containing the list of countries
        minLength: 2
    });

Akshey
jqueryui autocomplete: lists entries with search terms in middle
===

I am using jqueryui autocomplete widget for autocompleting a 'country' field but I am facing an issue. Suppose the user enters "in", I want the jqueryui to list countries like 'india', 'indonesia' which start with 'in', but it also lists the countries which have 'in' somewhere in the name (like: argentina). How can I solve this issue?

    jQuery(".autocomplete").autocomplete({
        source: CountrySuggestions, //CountrySuggestions is an array in javascript containing the list of countries
        minLength: 2
    });

Akshey