开发者

Show all options in JQuery autocomplete

开发者 https://www.devze.com 2023-03-08 09:34 出处:网络
Goal: make suggest field in form when user types his adress Yandex maps instead of Google. I wrote all js for handling data from yandex but got one problem

Goal: make suggest field in form when user types his adress

Yandex maps instead of Google. I wrote all js for handling data from yandex but got one problem

for example user types: New-York

and gets suggest: New-York New-York, Manhattan

all fine.

but when he continues typing to: New-York manhatt

he gets suggest: New-Y开发者_高级运维ork, Manhattan New-York, Manhattan, Empire Satate Building

Suggest works fine BUT results don't show in sugget list cause string user typed - "New-York manhatt" doesn't match any part of the string from suggest "New-York manhatt" != part of "New-York, Manhattan" "New-York manhatt" != part of "New-York, Manhattan, Empire Satate Building"

So, all i need is to show to user all data from suggest independent from what he typed

ideas?

0

精彩评论

暂无评论...
验证码 换一张
取 消