471,109 Members | 1,278 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,109 software developers and data experts.

Selected attribute for select control doesn't work in Firefox

Hello,

I have the following select control:

<SELECT name="Currency">
<OPTION VALUE="1">$-USD-US Dollar</OPTION>
<OPTION VALUE="2" SELECTED >£-GBP-British Pound</OPTION>
<OPTION VALUE="3">€-EUR-Euro</OPTION>
<OPTION VALUE="4">$-CAD-Canadian Dollar</OPTION>
<OPTION VALUE="5">$-AUD-Australian Dollar</OPTION>
<OPTION VALUE="6">$-NZD-New Zealand Dollar</OPTION>
<OPTION VALUE="7">$-MXN-Mexican Pesos</OPTION>
<OPTION VALUE="8">R$-BRL-Brazilian Real</OPTION>
<OPTION VALUE="9">$-ARS-Argentinean Pesos</OPTION>
<OPTION VALUE="10">Bs-VEB-Venezuelan Bolivar</OPTION>
<OPTION VALUE="11">kr-SEK-Swedish Krona</OPTION>
<OPTION VALUE="12">¥-JPY-Japanese Yen</OPTION>
<OPTION VALUE="13">Rs-INR-Indian Rupee</OPTION>
<OPTION VALUE="14">元-CNY-Chinese Yuan</OPTION>
<OPTION VALUE="15">$-HKD-Hong Kong Dollar</OPTION>
<OPTION VALUE="16">$-SGD-Singapore Dollar</OPTION>
</SELECT>

When I view it in IE6 British pounds show as being selected. When I
view the page in Firefox 1.5.0.6 US Dollars show as selected. Any idea
why? I originally had it rendered as
<OPTION SELECTED VALUE=2 SELECTED >£-GBP-British Pound</OPTION>

So I've played around with putting the SELECTED before the VALUE and
with it in it's current position. I've also played around with putting
double and single quotes around the values.

Thanks,
Eric

Aug 9 '06 #1
1 2148
er**********@gmail.com wrote:
When I view it in IE6 British pounds show as being selected. When I
view the page in Firefox 1.5.0.6 US Dollars show as selected. Any idea
why?
Likely you are running into Firefox keeping the selected value when the page
is refreshed. Leave the page and then return to it. You'll probably see it
start to work.

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Aug 9 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by TJ Walls | last post: by
16 posts views Thread by Howard Jess | last post: by
3 posts views Thread by John Walker | last post: by
3 posts views Thread by Alexander Higgins | last post: by
4 posts views Thread by rn5a | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.