This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes size of select tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "size of select tag" Watch "size of select tag" New topic

size of select tag

Shankar Narayana
Ranch Hand

Joined: Jan 08, 2003
Posts: 134
I want the select box to show 10 values when it is populated, I tried to work around by setting the style and size attributes but could solve it.

To better understand what i require is the example of outlook express contact list box, where you can move left and right the contacts. The same functionality is required in my application.

[ August 05, 2004: Message edited by: Shankar Narayana ]

"Failure is not when you fall down; its only when you fail to get up again."
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
You can set the size using the "size" attribute in your select element as follows:

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: size of select tag
jQuery in Action, 3rd edition