问题描述
@swatkins了一个梦幻般的回答了自己的问题有关使用jQuery模板这里jQuery用户界面的自动完成:Is有与jQuery UI的自动完成功能使用jQuery模板(官方插件)的方式?
@swatkins gave a fantastic answer to his own question about using jQuery templates with jquery UI's autocomplete here: Is there a way to use jQuery templates (official plugin) with jQuery UI Autocomplete?
我的问题建立了这一点。
My question builds off of that.
基本上,我想知道如何总会有着手建立自动完成,使用jQuery的模板,不使用任何类型的列表?
Basically i am wondering how would one go about building an autocomplete, with jQuery templates, that does not use any sort of lists?
我之所以问的是我想在小空间中显示了大量的信息,并与列表样式它似乎并没有让这个......还有,我只是真的很好奇:)
The reason i ask is i'd like to display a lot of information in a small space and styling it with lists does not seem to allow this... Also, i'm just really curious :)
感谢您!
推荐答案
使用列表项,但鸟巢的HTML显示它里面。然后,您可以在样式列表项列中显示,如果你想。
Use a list item, but nest the html to display inside of it. Then, you can style the list items to show in columns if you'd like.
下面是我的最新小提琴:
Here's my updated fiddle:
这篇关于使用jQuery模板与自动完成,并没有使用UL /李的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!