mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: small improvement for label id setting
This commit is contained in:
parent
e059376eae
commit
b8cce0c3e1
2
ui/jquery.ui.selectmenu.js
vendored
2
ui/jquery.ui.selectmenu.js
vendored
@ -75,7 +75,7 @@ $.widget( "ui.selectmenu", {
|
|||||||
var tabindex = this.element.attr( 'tabindex' );
|
var tabindex = this.element.attr( 'tabindex' );
|
||||||
|
|
||||||
// Find existing label
|
// Find existing label
|
||||||
this.labelElement = $( "label[for='" + this.element.attr("id") + "']" ).uniqueId();
|
this.labelElement = $( "label[for='" + this.ids.id + "']" ).uniqueId();
|
||||||
|
|
||||||
// hide original select tag
|
// hide original select tag
|
||||||
this.element.hide();
|
this.element.hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user