File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
size of select tag
Joined: Jan 08, 2003
Aug 05, 2004 20:17:00
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."
Joined: Jan 23, 2002
Aug 05, 2004 22:52:00
You can set the size using the "size" attribute in your select element as follows:
<form> <select name="cars" [B]size="3"[/B]> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="fiat">Fiat</option> <option value="audi">Audi</option> </select> </form>
Effective Unit Testing
I agree. Here's the link:
subject: size of select tag
Horizontal scroll bar in List box
Fixed Header Select box problem
struts2 select and js
fixing size of select box and incorporating horizontal scroll bar
selecting an option in a select box from session variable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014