I'm rendering a drop down box that contains a currently selected value using selected="true"
.
<select id="dropDown">
<option selected="true" value="1">value2</option>
<option value="2">value3</option>
<option value="3">value4</option>
</select>
Initially the selected value corresponds to the selected="true"
, but if I play around with the drop down box and then refresh the page the selected="true"
is ignored and the displayed value is the last one I chose. I tried using selected="selected"
with the same results.
Thanks for your help.