Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Powershell html select element

Status
Not open for further replies.

clovisc

Programmer
Aug 27, 2012
4
0
0
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top