Selectmenu: small improvement for label id setting

This commit is contained in:
Felix Nagel 2012-10-25 20:54:27 +02:00
parent e059376eae
commit b8cce0c3e1

View File

@ -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();