I made this code for jQueryUI v1.10.2 - 2013-04-17
HTML code:
<select class="combobox" placeholder="123">
<option>...</option>
...
</select>
JS Code:
$.widget( "ui.combobox", {
_create: function() {
this.wrapper = $( "<span>" )
.addClass( "ui-combobox" )
.insertAfter( this.element );
this._createAutocomplete();
this._createShowAllButton();
this.input.attr("placeholder", this.element.attr('placeholder'));
},
});
$(function() {
$( ".combobox" ).combobox();
});
source
share