views:

44

answers:

1

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>

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

+1  A: 

add autocomplete="off" to the tag. This is a known issue in firefox remembering your dropdown selection.

nopuck4you
the select or the option tag?
I'm pretty sure he is referring to the select tag
T B
Thanks. This helped alot
yes, i mean select tag.
nopuck4you