My jQuery UI AutoComplete ComboBox doesn\'t have a scrollbar on the right side and gets very, unfortuantely, long as shown below. I\'d like to restrain this list to a reason
Create your own extension and add the required methods:
$.widget("custom.combobox",
$.custom.combobox,
{
//Extension metod to add custom css to input
addInputCss: function (css) {
this.input.addClass(css);
},
//Extension metod to add custom css to menu (opened select list)
addMenuCss: function (css) {
$(this.input.autocomplete("instance").menu.element).addClass(css);
},
});
Sample usage:
$("#yourSelectId").combobox().combobox("addInputCss","yourInputCss").combobox("addMenuCss","yourMenuCss");