I have an ASP Page called test.asp which has the following code
<FORM name="myform">
<SELECT name="myselect" ONCHANGE="location = this.options[this.selectedIndex].value;">
<OPTION VALUE="test.asp" >ABC</OPTION>
<OPTION VALUE="test.asp?t=a">A</OPTION>
<OPTION VALUE="test.asp?t=b">B</OPTION>
</SELECT>
</FORM>
when the user selects an option it relaods the page with the request string which it is supposed to do .
Until here everything works fine .
But the the value of the option selected always goes back to the first option . Is there any way
i can preserve the option selected by the user.
I thoguht i could write a JavaScript function which sets the value to selected but not
sure how to do that . Any help is appreciated .
Thanks!!!!!!
<FORM name="myform">
<SELECT name="myselect" ONCHANGE="location = this.options[this.selectedIndex].value;">
<OPTION VALUE="test.asp" >ABC</OPTION>
<OPTION VALUE="test.asp?t=a">A</OPTION>
<OPTION VALUE="test.asp?t=b">B</OPTION>
</SELECT>
</FORM>
when the user selects an option it relaods the page with the request string which it is supposed to do .
Until here everything works fine .
But the the value of the option selected always goes back to the first option . Is there any way
i can preserve the option selected by the user.
I thoguht i could write a JavaScript function which sets the value to selected but not
sure how to do that . Any help is appreciated .
Thanks!!!!!!