A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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?
Generic List array
maxlength for customer id column
amount currency datatype
difference between Java, VisualBasic & C
String Array without knowing dimensions
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014