sample select method of autocomplete