简体   繁体   English

如何使用jQuery自动完成功能

[英]How to use a jQuery Autocomplete

I need a Example and source code of a JQuery autocomplete. 我需要一个示例和一个JQuery自动完成功能的源代码。 for eg if i have a cityArray={'Amsterdam, Amritsar, London, New york'}; 例如,如果我有cityArray = {'阿姆斯特丹,阿姆利则,伦敦,纽约'}; i want that whenever user press 'N' it will show a All the cities which contains a 'N' character, as per above array it must show London and New York both. 我希望每当用户按下“ N”时,它将显示一个包含“ N”字符的所有城市,按照上面的数组,它必须同时显示伦敦和纽约。 I have a example which show all the cities which Starts with 'N' character, but I need all the cities which having a 'N' Character. 我有一个示例,显示了所有以“ N”字符开头的城市,但我需要所有以“ N”字符开头的城市。 please help me. 请帮我。 Reply me as soon as possible. 尽快回复我。

You can find AutoComplete using jQuery at below mentioned link. 您可以在下面提到的链接中使用jQuery找到AutoComplete。

http://aspdotnetcodebook.blogspot.com/2010/02/autocomplete-using-jquery.html http://aspdotnetcodebook.blogspot.com/2010/02/autocomplete-using-jquery.html

Or You can search with google... and you will find out lots of AutomComplete using JQuery. 或者,您可以使用google搜索...,然后您将使用JQuery找出很多AutomComplete。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM