开发者

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

开发者 https://www.devze.com 2023-02-22 09:09 出处:网络
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

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

精彩评论

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