Skip to content

Commit b8cce0c

Browse files
committed
Selectmenu: small improvement for label id setting
1 parent e059376 commit b8cce0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ $.widget( "ui.selectmenu", {
7575
var tabindex = this.element.attr( 'tabindex' );
7676

7777
// Find existing label
78-
this.labelElement = $( "label[for='" + this.element.attr("id") + "']" ).uniqueId();
78+
this.labelElement = $( "label[for='" + this.ids.id + "']" ).uniqueId();
7979

8080
// hide original select tag
8181
this.element.hide();

0 commit comments

Comments
 (0)