File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes What is the listIndex? 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 "What is the listIndex?" Watch "What is the listIndex?" New topic

What is the listIndex?

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1562
If I have a particular string that I know is one of the values of a select list how can I use this string to find the list item index so I can use it in a remove command?
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You can try this:

or loop through the options, look at the text or value and get the index that way.

I agree. Here's the link:
subject: What is the listIndex?
It's not a secret anymore!