开发者

jquery autocomplete, return results to separate layer

开发者 https://www.devze.com 2022-12-25 00:40 出处:网络
Using jquery UI 1.8\'s autocomplete, is there any known way to take the results and return them to a different div elem开发者_高级运维ent on the page, or to customize how they look upon return? I want

Using jquery UI 1.8's autocomplete, is there any known way to take the results and return them to a different div elem开发者_高级运维ent on the page, or to customize how they look upon return? I want to have the results show up in a list that can be interacted with, essentially.


There does not seem to be a built in way to return the results to another location on the page. However, customizing how they look is quite straightforward, that is just a matter of applying CSS to the widget. The Theming docs will explain all the detail.

I would suggest attaching an event handler to one of the events of the autocomplete (maybe search) and writing your own custom code to capture the results and move them to the the required place in the DOM.

0

精彩评论

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

关注公众号