/    Sign up×
Community /Pin to ProfileBookmark

Dropdown box changes on refresh.

I have a dropdown box that works fine until you refresh the page in Firefox. When you hit refresh it changes to the last option instead of the first. I’ve already checked to make sure that it’s also not marked as selected like the first option. Any ideas? Here’s the code.

<select class=”drpbox” id=”drpFastLinks” name=”drpFastLinks” size=”1″ onchange=”cmdFastLinks()”>
<option class=”drpoption” selected=”selected” value=”NA”>Fast Links</option>
<option value=”NA”></option>
<option class=”drpoption” value=”http://www.keiger.com”>Home</option>
<option value=”NA”>——————————————————-</option>
<option class=”drpoption” value=”/Pages/AboutUs.asp”>About Us</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;About Us</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;What to Expect</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Affiliations</option>
<option value=”NA”>——————————————————-</option>
<option class=”drpoption” value=”/Pages/News.asp”>News</option>
<option value=”NA”>——————————————————-</option>
<option class=”drpoption” value=”/Pages/Capabilities.asp”>Capabilities</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Products and Services</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Capabilities</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Site Map</option>
<option value=”NA”>——————————————————-</option>
<option class=”drpoption” value=”/Pages/eCommerce.asp”>e-Commerce</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Send a File</option>
<option value=”NA”>——————————————————-</option>
<option class=”drpoption” value=”/Pages/Resources.asp”>Resources</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Abbreviations and Acronyms</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Glossary of Terms</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Helpful Links</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Color Conversion Chart</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Caliper to Equivalent Weight</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Site Map</option>
<option value=”NA”>——————————————————-</option>
<option class=”drpoption” value=”/Pages/Support.asp”>Support</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Knowledge Base</option>
<option value=”NA”>——————————————————-</option>
<option class=”drpoption” value=”/Pages/ContactUs.asp”>Contact Us</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Contact Us</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Directions</option>
<option value=”NA”>&nbsp;&nbsp;&nbsp;Job Opportunities</option>

to post a comment

2 Comments(s)

Copy linkTweet thisAlerts:
@FangAug 22.2007 — Make each value unique. If you choose an option with value="NA", then on refresh Fx will find the last option with that value and make it the selected option.
Copy linkTweet thisAlerts:
@nbcrockettauthorAug 22.2007 — Thanks, I thought about that after I posted, but it's nice to have it confirmed.


Help @nbcrockett spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 11.30,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ

legal: ({
terms: of use,
privacy: policy
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
recent_tips: (
tipper: @bahaedd,
tipped: article
amount: 1000 SATS,

tipper: @Balmasexy,
tipped: article
amount: 1000 SATS,

tipper: @mbsaad,
tipped: article
amount: 1000 SATS,