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" />');
精彩评论