A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Other Open Source APIs
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
String Array without knowing dimensions
difference between Java, VisualBasic & C
amount currency datatype
Generic List array
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015