开发者

jquery ui autocomplete, render <div> around <ul> results

By default, jquery ui's autocomplete (http://jqueryui.com/demos/autocomplete/) renders an <ul> around the search results. Is there any way to m开发者_高级运维ake it render a div tag before and after with a certain class added to them? Thanks


You can use the wrap function:

$('.ui-autocomplete').wrap('<div class="classname" />');
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜