diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index a0391268e..d97b52387 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -260,7 +260,7 @@ $.widget( "ui.selectmenu", { if ( item.optgroup !== currentOptgroup ) { $( "
", { "class": "ui-selectmenu-optgroup" + ( item.element.parent( "optgroup" ).attr( "disabled" ) ? " ui-state-disabled" : "" ), - html: item.optgroup + text: item.optgroup }).appendTo( ul ); currentOptgroup = item.optgroup; } @@ -274,7 +274,7 @@ $.widget( "ui.selectmenu", { li.addClass( "ui-state-disabled" ); } li.append( $( "", { - html: item.label, + text: item.label, href: "#" }) );