faqts : Computers : Programming : Languages : JavaScript : Forms : SELECT

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 29 people (24%) answered Yes
Recently 1 of 10 people (10%) answered Yes

Entry

How do I control the # of lines visible in the drop-down part of a SELECT (not total # of OPTIONs)?

Oct 4th, 2001 10:35
Jim Griffin, Francis Favorini,


Try using the <select style=""> element of the select box.
For example: <select name="something" style="height:100;width:200">
Or you can set a height value in the select box. (<select 
height="100">). You can also set the select to multiple. (<select 
name="something" style="height:100;width:200;" multiple>
Good luck!
Jim