Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fixed length for drop-down list

 
Nazneen Shaikh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a select box in my jsp. When i click on it i get a drop down list with 15 items and a scroll bar as the total list is 20. I need to fix the length of the drop-down list.

How can i do this. I want the drop-down list to show only 5and the rest can be searched with the use of scroll bar.

Please help.

Thanking in Advance
Nazneen
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
size="5"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic