This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Fixed length for drop-down list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Fixed length for drop-down list" Watch "Fixed length for drop-down list" New topic
Author

Fixed length for drop-down list

Nazneen Shaikh
Greenhorn

Joined: May 01, 2003
Posts: 21
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

Joined: Nov 08, 2001
Posts: 15379
    
    6
size="5"
 
rocket mass heater kickstarter
 
subject: Fixed length for drop-down list