如何在 Firefox 中刷新(F5)时重置为默认下拉列表选项? [英] How do I reset to default drop down list option on refresh(F5) in Firefox?

查看:23
本文介绍了如何在 Firefox 中刷新(F5)时重置为默认下拉列表选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Firefox 中有一个 ddl,它没有被重置为默认标题.我该怎么做呢?这是我目前所拥有的.

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 = &quot;selected&quot;"); } %> value="" >--Choose One--</option>
    <option <%if (ddlVal == "Building") { Response.Write("selected = &quot;selected&quot;"); } %> value="Building">Building</option>
    <option <%if (ddlVal == "Contents") { Response.Write("selected = &quot;selected&quot;"); } %> value="Contents">Contents</option>
</select>

刷新时,ddl 是刷新前显示的内容,而不是默认的 ddl.我该如何纠正?

On a refresh, the ddl is the what is being displayed before the refresh, and not the default ddl. How do I corect this?

推荐答案

autocomplete="off" 添加到

发送“验证码”获取 | 15天全站免登陆