View Full Version : Limiting the lenght of a drop down menu
DanLap
05-07-2004, 03:37 AM
I have a drop down selection menu containing over 50 options. When the user click on it, the list appears either towards the top or the bottom of the page, showing as many lines as possibles. The size of the <select> is set at 1 as this is what I want to show in the unselect mode but I would like to limit the list to the first 10 items, with the possibility for the user to use the scrolling bar to show the rest of the list.
Any ideas anyone?
Ok, if I understand you correctly, what you need to do is change the size to 10 instead. That will show the first 10 items in the list, and if the user wants to see the rest of the choices, they'd have to use the scrollbar.
Actually, a user could technically select more than one item on the list by pressing CTRL down as they make their selections. Just so you know... ;)
DanLap
05-10-2004, 02:19 PM
That doesn't do it for me. I don't want the size of the original selection box (before activating the pull down menu) to take more than one line. I also don't want to allow multiple choice.
But thanks anyway.
glenngv
05-12-2004, 01:02 PM
You can't change the size of displayed items in a select when it's "pulled down", that's browser-specific behavior. In IE, the size is set at 11 items, while in Moz it's 20.
DanLap
05-12-2004, 01:05 PM
I came to that conclusion to. Thanks
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.