var speedC = $('select#speedC').selectmenu();
- var speedD = $('select#speedD').selectmenu();
+ var speedD = $('select#speedD').selectmenu();
+
+ var speedD_first = $('select#speedD_first').selectmenu();
var speedD2 = $('select#speedD2').selectmenu();
$("#optgroupSwitch").toggle(
</select>
</fieldset>
+ <fieldset>
+ <label for="speedD_first">Disabled and selected first option by HTML</label>
+ <select id="speedD_first">
+ <option disabled="disabled" selected="selected">Choose one...</option>
+ <option>Option 1</option>
+ <option>Option 2</option>
+ <option>Option 3</option>
+ <select>
+ </fieldset>
+
<fieldset>
<label for="speedD3">Disabled optgroup by HTML</label>
<select name="speedD3" id="speedD3">
}
// update value
- this.index( this._selectedIndex() );
+ this._refreshValue();
// set selected item so movefocus has intial state
this._selectedOptionLi().addClass(this.widgetBaseClass + '-item-focus');