I want to limit the number of items in the drop-down list to, say, 6. After a pretty search I can find nothing but a hint, there is a maxHeight option, but this does not seem to have an effect.
HTML:
<label for="files">Select a file:</label> <select name="files" id="files"> </select>
JavaScript:
// configure $( "#files" ).selectmenu({ icons: { button: "ui-icon-search" } , style: 'dropdown', maxHeight: 60 }); // Test data for( i = 0; i < 100; i++ ) { $('#files').append($('<option/>', { value: "a" + i, text : "b" + i })); }
TTFN John
[Edit] Just to clarify, I want to save all the elements in a droplist, display only their subset, which the user scrolls like a combobox in a normal working application.
source share