This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes list box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "list box" Watch "list box" New topic

list box


Joined: Sep 02, 2005
Posts: 4
Suppose I have created a LIST BOX

List.options[0]=new Option('text','value');

I can acess the 'value' using List.option[0].value...

How can I access the 'text' ?

[ September 10, 2005: Message edited by: Bear Bibeault ]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62489


You have already been asked once to chnage your display name to conform to JavaRanch standards.

This is not optional. Accounts with invalid display names are removed.

Take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. And please, make it mixed case.

Forum Bartender

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: list box