Hi,
I have to programatically change the value of a select element to the first value.
there is a second select element below it on which I can also change the value, but only if a value of the first one has been set. the velues offered on the second one depend on which value was selected for the first one.
To set the first select element to the desired value, I do
$category.selectedIndex = "1"
the problem is the web page doesn't register that the value has been changed and doing
$subcategory.selectedIndex = "4"
does nothing.
I suspect the change has to be "validated" somehow, but I don't know how.
any help appreciated.
Clovis
I have to programatically change the value of a select element to the first value.
there is a second select element below it on which I can also change the value, but only if a value of the first one has been set. the velues offered on the second one depend on which value was selected for the first one.
To set the first select element to the desired value, I do
$category.selectedIndex = "1"
the problem is the web page doesn't register that the value has been changed and doing
$subcategory.selectedIndex = "4"
does nothing.
I suspect the change has to be "validated" somehow, but I don't know how.
any help appreciated.
Clovis