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
What is the listIndex?
Joined: Nov 16, 2004
Sep 27, 2007 16:35:00
If I have a particular
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?
Joined: Nov 08, 2001
Sep 27, 2007 20:24:00
You can try this:
var sel = document.formName.selectName; sel.value = "foo"; sel.options[theSel.selectedIndex] = null;
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?
maxlength for customer id column
amount currency datatype
difference between Java, VisualBasic & C
Generic List array
String Array without knowing dimensions
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014