R
Rob Meade
Hi all,
I post back to my page if the form hasn't been submitted with the required
information. I would like to with a little javascript, auto-select an
option in the drop down list on my page.
The drop down list is called lstCountry
I will have in an ASP variable the country code which was the value of the
selected item when the form was posted...
I would like to do something like...
lstCountry.options[<%=strCountry%>].selected = true
I think however the value between the square brackets has to be a number
relating to the index of the option?
Can anyone help me with this please...
Regards
Rob
I post back to my page if the form hasn't been submitted with the required
information. I would like to with a little javascript, auto-select an
option in the drop down list on my page.
The drop down list is called lstCountry
I will have in an ASP variable the country code which was the value of the
selected item when the form was posted...
I would like to do something like...
lstCountry.options[<%=strCountry%>].selected = true
I think however the value between the square brackets has to be a number
relating to the index of the option?
Can anyone help me with this please...
Regards
Rob