I could swear there was a way to display all the items in a <select> list without having to scroll. I know I've seen this somewhere but maybe I was dreaming. Any ideas?
Umm, I know you can lengthen the size of the select tag so no scroll bar is needed. The default is to show 1 option at a time. You could set the size of the select tag to show all the options without scrolling.
No, I don't want to increase the size of the tag and I only want one item to show in its "default" manner. I am merely trying to display all the items in the select list when it is clicked so a person does not have to scroll through all the items. There are only about 9 items showing and then you have to scroll to see 10 and 11. I'm 99% positive I have seen this done. I can't believe something this simplistic is racking my brain.
The properties of select don't show anything that suggests this could be possible, just tried the intellisense in VS.NET. I think the only way it could be accomplished is mimicing a select box using layers and hidden fields.
do this. click on the Jump To: option of this forum. Notice how all the categories and forums do not show? I think only 9 or 10 of them show and you have to scroll. I vividly remember one website I went to displayed the entire list.
I know this doesn't help you very much dayve, but I don't think its possible like DavidRhodes said - you'd have to code a layer in javascript and have the options appear that way.
I also agree with you Dayve, that I have seen this done before. There was a select tag that I once clicked on, and it had many options in there. But when I clicked on it, it took up the total height of my browser to display the options. I thought it was peculiar, as I never seen it behave this way before. But I didn't check the code to see how they did it.
Basically what I'm saying is...I've seen it done before too.
You would have to loop through (read from your database) the items and count them. Then when your ASP code generates the <select> code, you would assign the count to the "size" property.