Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DropDown List box size

Status
Not open for further replies.

CoderMan

Programmer
Aug 20, 2002
8
US
Hi,
I need to create a drop down list box that has about 40 items. However it should display only one line initally. Then when the user clicks on it, it should drop down to display 10 choices and also a scroll bar for the user to navigate to select more choices. I have no clue how to do this. Any ideas?

I tried adding size to the Select option but that always displays a list of 10 options and I do not want to do that.

Thanks in advance.
 
I'm puzzled. What you say you want is exactly the way SELECT works. The SIZE parameter simply alters the number of items that you can see in the drop-down list before you click on it.

RW
 
I guess you set the [tt]size[/tt] value that is <> 1.

Change it to
<select ... size=1>

or remove [tt]size[/tt] completely (as it is =1 by default).

Also, you cannot control the number of choices visible when you open drop-down list.
 
Well, I think the last line by starway sums it up. What I want to do is control the number of choices when I open my drop down list box.

My creative team desgined it and I have to deliver it. I just don't know how. Maybe some web site used a custom control to do it. I do not have that luxury. Well, I will just see what I can do. Thanks folks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top