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!

Scrollable select menus?

Status
Not open for further replies.

Cheech

Technical User
Nov 6, 2000
2,933
EU
Minds gone blank, there must be an easy solution to this.

I have a select menu with the days of the month, 1st thru 31st, when the user selects the menu nearly the whole list is displayed on the screen. Is there a way to limit the number of options that are displayed when a user clicks the arrow and then lets them scroll to other options.

Cheers Cheech

[Peace][Pipe]
If you don't stand up for something, you'll fall down. Toke it Easy.
Howard Marks.
 
You need to add the attribut Size to the Select tag:

<SELECT NAME=&quot;List&quot; SIZE=6>

This example will show 6 items at a time in the Select list &quot;List&quot;.
 
Sorry maybe didnt explain myself fully.

For formating reasons I only want 1 option displayed until the menu is selected and would then like to limit the options shown to 4 or 5 dates with scroll bar to get to the rest.

Cheech

[Peace][Pipe]
If you don't stand up for something, you'll fall down. Toke it Easy.
Howard Marks.
 
I tried the following and got the first choice showing, and 11 at a time when expanding. I was not able to control the number of choices when it was clicked. Maybe it's your browser? I am using IE 5.5.

<SELECT name=&quot;dates&quot;>
<OPTION value=&quot;1&quot;>1
<OPTION value=&quot;2&quot;>2
<OPTION value=&quot;3&quot;>3
<OPTION value=&quot;4&quot;>4
<OPTION value=&quot;5&quot;>5
<OPTION value=&quot;6&quot;>6
<OPTION value=&quot;7&quot;>7
<OPTION value=&quot;8&quot;>8
<OPTION value=&quot;9&quot;>9
<OPTION value=&quot;10&quot;>10
<OPTION value=&quot;11&quot;>11
<OPTION value=&quot;12&quot;>12
<OPTION value=&quot;13&quot;>13
<OPTION value=&quot;14&quot;>14
<OPTION value=&quot;15&quot;>15
<OPTION value=&quot;16&quot;>16
<OPTION value=&quot;17&quot;>17
<OPTION value=&quot;18&quot;>18
<OPTION value=&quot;19&quot;>19
<OPTION value=&quot;20&quot;>20
<OPTION value=&quot;21&quot;>21
<OPTION value=&quot;22&quot;>22
<OPTION value=&quot;23&quot;>23
<OPTION value=&quot;24&quot;>24
<OPTION value=&quot;25&quot;>25
<OPTION value=&quot;26&quot;>26
<OPTION value=&quot;27&quot;>27
<OPTION value=&quot;28&quot;>28
<OPTION value=&quot;29&quot;>29
<OPTION value=&quot;30&quot;>30
<OPTION value=&quot;31&quot;>31
</SELECT>

Sorry I couldn't be more help.
 
Ok thanks for trying

Cheech

[Peace][Pipe]
If you don't stand up for something, you'll fall down. Toke it Easy.
Howard Marks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top