如何在自动建议的文本框中仅显示10个项目或限制项目 [英] How to show only 10 item or limit item in auto suggested textbox

查看:41
本文介绍了如何在自动建议的文本框中仅显示10个项目或限制项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用此自动建议文本框
http://jqueryui.com/demos/autocomplete/ [
[ ^ ]

他们用了这个
this.actb_lim = 4;
平均显示4个元素

我希望在
上具有相同的功能 http://jqueryui.com/demos/autocomplete/ [

Hi
i am using this auto suggest text box
http://jqueryui.com/demos/autocomplete/[^]

when i click on text field it show all item . but i want to display on 10 item or limited item .

can this is possible?

example :

[^]

they used this
this.actb_lim = 4;
mean 4 elemt is disply

i want same functionality on
http://jqueryui.com/demos/autocomplete/[^]
this

推荐答案

显示的内容与源返回的内容一样多.因此,如果您要显示最多10个项目,则最多只能返回10个项目.
As far as i remember it shows as many items as the source returns. So if you want to show maximum of 10 items, only return 10 items at max.


这篇关于如何在自动建议的文本框中仅显示10个项目或限制项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆