diff options
Diffstat (limited to 'demos/selectmenu/custom_render.html')
-rw-r--r-- | demos/selectmenu/custom_render.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/demos/selectmenu/custom_render.html b/demos/selectmenu/custom_render.html index 39d1534de..c9f962d7f 100644 --- a/demos/selectmenu/custom_render.html +++ b/demos/selectmenu/custom_render.html @@ -21,11 +21,10 @@ li.addClass( 'ui-state-disabled' ).text( item.label ); } else { el = item.element; - var link = $( "<a />", { + $( "<a />", { html: icon = '<span style="' + el.attr("style") + '" class="ui-icon ' + el.attr("class") + '"></span>' + item.label, href: '#' - }); - li.append( link ); + }).appendTo( li ); } return li.appendTo( ul ); |