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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limit number of rows in drop down...

Status
Not open for further replies.

fdgsogc

Vendor
Feb 26, 2004
160
CA
I have a drop down field that has about 25 records to display. Problem is that when the user clicks on it they see about 20 of those records. Very messy view. Takes up the whole form until a selection is made.

What I would like to see is 5 records displayed at a time, then have the user scroll down to see the other 20 records.

I tried using size=5 in the select tag. However, that permanently displays 5 rows on the form. What I want is to see a drop down field, then click on it, see 5 first records, then scroll to see remaining 20 records.

Ideas?
 
Nothing you can do. Selects (dropdowns) are controlled by the OS and browser and there is no html/css to suit them to your needs. You would need to write a completely new select box through JS if you wanted to control that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top