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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

no. of displayed options in select box once clicking on it

Status
Not open for further replies.

avivit

Technical User
Jul 5, 2000
456
IL
How can I define a certain size of options to display, when<br>one presses on the select box (&lt;select&gt;). I want the opther options to be scrolled.<br>The problem: IE shows few options when clicking on the select and the other are to be scrolled, which is great. BUT NS opens a very long list on a aclick, and only last few are to be scrolled. It hides the test under the opened<br>&lt;select&gt;. What can I do?
 
&lt;select SIZE=&quot;listLength&quot;&gt;<br>it works on both ie and nn as far as i know <p> <br><a href=mailto:miss_lezard@bigfoot.com>miss_lezard@bigfoot.com</a><br><a href= > </a><br>
 
Thanks iza, but that's not what I ment.<br>Maybe I was not clear enough:<br>I don't want the select to have more the one row<br>on default display.<br>I need that only when one clicks on the select,<br>then will be opened a list of few rows, which are part of the whole list (options), and that the rest will be scrolled. Each time a user can see, say, 5 rows at the time,<br>no matter where he is scrolling inside the list.<br>At the beginning I want the user to see only one row<br>(the default selected one).<br>Do you know how to solve that?<br>
 
Try using css that is the only one i can think of u can try to redefine the html tag ie select it self so it shows how many u want <br><br>i have a feeling that it is browser dependent <p>Unicorn11<br><a href=mailto:webmaster@tripmedia.com>webmaster@tripmedia.com</a><br><a href= > </a><br>Hi there it all likeminded fellows!!!!!!
 
&quot;css that is the only one i can think of u can try to redefine the html tag &quot; ---&gt; jscript would b fine too<br>something like :<br>&lt;select ... onchange=&quot;javascript:this.size=5&quot;&gt; <br><br>but still, it's certainly NOT cross browser ... <p> <br><a href=mailto:miss_lezard@bigfoot.com>miss_lezard@bigfoot.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top