Skip to content

Commit f2865c1

Browse files
committed
fixed: problem (mainly in <= IE7) when select has no id, thx Ryzo and cburgdorf, see: fnagel#101
1 parent 0138aef commit f2865c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ $.widget("ui.selectmenu", {
6868
this.newelement.prepend('<span class="' + self.widgetBaseClass + '-status" />');
6969

7070
// make associated form label trigger focus
71-
$('label[for="' + this.element.attr('id') + '"]')
72-
.attr('for', this.ids[0])
73-
.bind('click.selectmenu', function() {
71+
$( 'label[for="' + selectmenuId + '"]' )
72+
.attr( 'for', this.ids[0] )
73+
.bind( 'click.selectmenu', function() {
7474
self.newelement[0].focus();
7575
return false;
7676
});

0 commit comments

Comments
 (0)