I have a <select> box with some year numbers in them, ranging 50 years back, and currently when I click on the box the options will reach to the very bottom of the screen, is there any way to set the max amount of options a select box should show before resorting to a scroll bar to show the rest? I could not find anything about this on Google, the only thing that came close is the size attribute, which is really not what I want.
I have a <select> box with some year numbers in them, ranging 50 years
Share
I believe the reason why you can’t do that (sorry) is that these are usually implemented as OS native controls, which also means they behave differently in different browsers/platforms.