diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 042a3f957..740c64c47 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -75,7 +75,7 @@ $.widget( "ui.selectmenu", { var tabindex = this.element.attr( 'tabindex' ); // Find existing label - this.labelElement = $( "label[for='" + this.element.attr("id") + "']" ).uniqueId(); + this.labelElement = $( "label[for='" + this.ids.id + "']" ).uniqueId(); // hide original select tag this.element.hide();