get selection in search box