Код: Выделить всё
$.widget( 'app.selectmenu', $.ui.selectmenu, {
_drawButton: function() {
this._super();
var selected = this.element
.find( '[selected]' )
.length,
placeholder = this.options.placeholder;
if (!selected && placeholder) {
this.buttonText.text( placeholder );
}
}
});
$('select').selectmenu({
placeholder: 'Select a speed'
});
Подробнее здесь: https://stackoverflow.com/questions/392 ... ot-working
Мобильная версия