<div>I'm sorry , still can't work.</div>
<div>
<div dir="ltr">I am afraid it is the onload function which changes the values of select options each time i validator.</div>
<div dir="ltr">I'd better to write a js to resolve this case?</div>
<div dir="ltr"> </div>
<div dir="ltr">Thanks all the same.<br> </div></div>
<div><span class="gmail_quote">2007/10/11, Yasuo Higa <<a href="mailto:higa@isid.co.jp">higa@isid.co.jp</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi, all.<br>><br>> I designed a selectbox to select years like below:<br>> <select id="SYear">
<br>> </select><br>><br>> And in the html onload function evaluated the options :<br>> <body onload="setSYear();"><br>><br>> And these is a Search button to do Search.Before search i need to do
<br>> some validation .<br>> But once my validation failed , the select value disappeared. Others like<br>> input text all maintained , why?<br>><br>The reason is that "SYearItems" is not kept<br>after reder phase.
<br><br>So, You should define hidden tag as follows:<br><input type="hidden" id="SYearItemsSave"/><br><br>--<br>Yasuo Higa<br><a href="mailto:higa@isid.co.jp">higa@isid.co.jp</a><br>_______________________________________________
<br>Seasar-user mailing list<br><a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br><a href="https://ml.seasar.org/mailman/listinfo/seasar-user">https://ml.seasar.org/mailman/listinfo/seasar-user</a>
<br></blockquote></div><br>