Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt about HTML selec t tag

 
Phanindra varma
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can anybody tell me the solution for this.

I have a code loke this :
<select>
<options>one</options>
<options>two</options>
-----
-----
<options>twenty</options>
</select>

When i am selecting this select box it is showing a some values with scroll bar.

How do we show only ten values initially if we want 11th one we need scroll.

Can you please tell me ...
Thanks in Advance.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure what you are after, but maybe the size attribute?

Eric
 
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!