Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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