Code:
<select NAME="Tour" onchange="frmDisplay.submit()">
<% String temp2 = "";
while(rsTour.next()){
temp2 = rsTour.getString(1);
if (temp2 == tour) { %>
<option selected><%=temp2 %></option>
<% }else{ %>
<option><%=temp2 %></option>
<% } } %>
<option><%=tour %></option>
</select>
this is my code for a combo box in my html form.
However, I want the combo box show me the value i selected before submit. But, it will only show me the default first value.
For example, I choose "BBB", but after the event on change, and come back to this page, it will show "AAA" which is the first choice.
Is there anyway to show my selection as the default ?
thank you