Link to home
Start Free TrialLog in
Avatar of rguzik
rguzik

asked on

Limit displayed length of dynamic dropdown list

Is there a way to control how many lines display in a dynamically built dropdown list. For example, a list of states and the dropdown should include all states but only display 1 or 2 lines and allow scrolling thru the list?  Thanks...
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

use the SIZE property of the SELECT list

<SELECT .... SIZE=2 ...>... </SELECT>
ASKER CERTIFIED SOLUTION
Avatar of steelseth12
steelseth12
Flag of Cyprus image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i must type slow afterall sorry angelIII.
Avatar of rguzik
rguzik

ASKER

I tried that before posting... it doesn't work...  
When the list "drops down" it occupies 65 lines :-(
It should work, please show your code.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rguzik

ASKER

Thanks steelseth12 and yodercm. I was just being to stingy... it works with size="2" but not size="1". I can live with that :-)
>it works with size="2"
hmmm. didn't I post that also? :-)
Glad we could help
Avatar of rguzik

ASKER

Sorry angelIII... you are so right! If I can find the way to do so I will award points to you as well :-)   Thanks...
>If I can find the way to do so I will award points to you as well
no problem, does not hurt me.
simply look better next time(s) :-)
rquzik, you can email the EE admin and ask them to adjust the points.  Explain and they'll fix it for you.  AngelIII does deserve some of the points.