What I feel is if you have more records in the drop down which doesn’t fit in page then you convince the customer to compromise having it as selection popup (the best way).
however, you can still have dirty work arounds like playing with the visibility settings of div though..
Have Fun with Java
little,little.. little by little makes a lot..
as i already mentioned dirty.. it is really dirty...
Anyways, what i fell is it is still to do something like below, didn’t try it though
For example, if i have 20 options, i shall iterate till 10 to show the recently used or something but only few in number, for now say 10 and the 11th option would be "...". All this setup would be in a div, and be visible on load on page
when user selects "..."
we shall block this and show another div with all elements (since user asked for it, it would be displayed)...
It still has nothing at all to do with an HTML select element.
If the <select> element is unsuitable, it's certainly possible to create a custom widget using other HTML elements. In such a case I would not recommend anyone build their own, but rather use one of the existing widgets such as the jQuery UI Autocompleter widget.
But i still go with a popup with radio button which is easier to implement (if the application is not rich in UI). If UI is rich then yes, to match with other screen elements JQuery is the best one. If Jquery is already in use then also Ok since there would be less learning to do. But only for this one select box? Moreover, its is Struts1 application, rich UI ??
Joined: Sep 03, 2009
I am not using jquery. could i set dropdown list box height with java script?