SELECT pulldown list size

liunx

Guest
I want to display a <SELECT> <OPTION> list that holds the 12 months Jan-Dec.<br />
However, by default, the number of items in the list is 11!<br />
How can I override this so that all 12 items are displayed - I don't want user to have to scroll just to see the extra month.<br />
My list will always be 12 long.<br />
size=12 won't do it as it just stretches the box to 12 lines long - I want to retain the drop down functionality.<br />
<br />
My simplified code so far is:<br />
<HTML><br />
<BODY><br />
<select id=txtID name=MonthID><br />
<option value=1 >January</option><br />
<option value=2 >February</option><br />
<option value=3 >March</option><br />
<option value=4 >April</option><br />
<option value=5 >May</option><br />
<option value=6 >June</option><br />
<option value=7 >July</option><br />
<option value=8 >August</option><br />
<option value=9 >September</option><br />
<option value=10 >October</option><br />
<option value=11 >November</option><br />
<option value=12 >December</option><br />
</select)<br />
<br />
</BODY><br />
</HTML><br />
<br />
Good luck!<!--content-->not even with CSS or some Javascript trickery?<!--content-->Originally posted by dferris <br />
I want to display a <SELECT> <OPTION> list that holds the 12 months Jan-Dec.<br />
However, by default, the number of items in the list is 11!<br />
<br />
That's correct. In computer language counting begins with 0 (zero) 0 1 2 3 4 5 6 7 8 9 10 11 that equals 12 files.<!--content-->
 
Back
Top