How does one retain the value of a drop-down box when the form is re-loaded after a verification routine?
I have a dropdown box:
<select name="shiurFreq" size="1" tabindex="8" onchange="if(this.selectedIndex == 1)
{document.Frontpage_form1.shiurDateText.style.display='inline'; document.Frontpage_form1.syear.style.display='inline';}
else
{document.Frontpage_form1.shiurDateText.style.display='none';
document.Frontpage_form1.syear.style.display='none';}">
The value returned is saved in a cookie:
<option selected>Shiur Frequency <%=SF_GetshiurFreqSELECT(Request.Cookies(consts_CollectionName_Shiur)("shiurFreq"))%>
</select>
However, when the form is reloaded after failing a verification routine, the values previously entered disappear (there is no 'onChange' event on reload).
How does one retain the previously entered values?
I have a dropdown box:
<select name="shiurFreq" size="1" tabindex="8" onchange="if(this.selectedIndex == 1)
{document.Frontpage_form1.shiurDateText.style.display='inline'; document.Frontpage_form1.syear.style.display='inline';}
else
{document.Frontpage_form1.shiurDateText.style.display='none';
document.Frontpage_form1.syear.style.display='none';}">
The value returned is saved in a cookie:
<option selected>Shiur Frequency <%=SF_GetshiurFreqSELECT(Request.Cookies(consts_CollectionName_Shiur)("shiurFreq"))%>
</select>
However, when the form is reloaded after failing a verification routine, the values previously entered disappear (there is no 'onChange' event on reload).
How does one retain the previously entered values?