I have a ddl in firefox that does not get reset to the default caption. How do I do this? This is what I have so far.
<%string ddlVal = ""%>
<select id="detailSelect" name="DetailSelect">
<option <%if (ddlVal == "") { Response.Write("selected = "selected""); } %> value="" >--Choose One--</option>
<option <%if (ddlVal == "Building") { Response.Write("selected = "selected""); } %> value="Building">Building</option>
<option <%if (ddlVal == "Contents") { Response.Write("selected = "selected""); } %> value="Contents">Contents</option>
</select>
On a refresh, the ddl is the what is being displayed before the refresh, and not the default ddl. How do I corect this?
add autocomplete="off"
to the <select>
tag. This is a known issue in firefox remembering your dropdown selection.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With