diciccod
01-09-2007, 02:44 PM
I would like to change the option of the select named 'identifier' using selectedItem and not selectedIndex. I want to change it by the value and not by the index because my index might be changing, when my data and label will not be. I'm sure its something simple i just can't find it though.
if(webcreditstore.text == "Sometext")
{
identifier.selectedIndex = 2;
//identifier.selectedItem = "valueOfItem2"; I would like to use something like this
}
if(webcreditstore.text == "Sometext")
{
identifier.selectedIndex = 2;
//identifier.selectedItem = "valueOfItem2"; I would like to use something like this
}