开发者

jquery: suggest an autocomplete plugin that I can use

Does anyone know if theres a jquery autocomplete library that works similar to the one here: http://www.thetrainline.com

(try and s开发者_开发知识库elect a station to see what i mean) The one on here is a prototype library. Basically all the ones ive found will only match characters if they appear at the beginning of a string, for example, if i typed 'ear' it would not match the word 'hear'. However this one seems to do that.

If anyone has any ideas id be very grateful.


You can use the jQuery Autocomplete plugin from bassistance.de, which gives you the option of preloading all the possible data or using a server-side backend for finding matching results.

Use the matchContains option to match results that contain, rather than just begin with, the search string.


EDIT
Just FYI: there is now (Feb 2011) an autocomplete widget builtin to jQuery UI as of v1.8.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜