473,473 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2231
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matt | last post by:
I want to know if readOnly attribute doesn't work for drop down list? If I try disabled attribute, it works fine for drop down list. When I try text box, it works fine for both disabled and...
15
by: TJ Walls | last post by:
Hello All, Is it possible to create a <select> element with no selected options? I have tried setting the selectedIndex attribute to -1, but as far as I can tell this only works for <select...
3
by: ewitkop90 | last post by:
Here is my code: <SCRIPT> function transportchange(transport) { if (framenewinstall.Helpdesk.checked) framenewinstall.Helpdesk.checked=false; if (framenewinstall.CircuitNumber.checked)...
8
by: McKirahan | last post by:
Firefox does not reflect selected option via innerHTML How do I get Firefox to reflect selected option values? <html> <head> <title>FFinner.htm</title> <script type="text/javascript">...
16
by: Howard Jess | last post by:
All -- I'm trying to solve a problem for which I think the solution will be to *cheat*; but I don't mind doing so for this case. The background is: Given an object constructor, and an instance...
3
by: John Walker | last post by:
Hi, On an ASP.NET page I have a drop down list control. When the user pulls down the list and makes a selection, I perform validation, and if the validation fails I want the selected item in...
3
by: Alexander Higgins | last post by:
Hello, I would like to thank everyone for there help in advance. I have form which is using an iframe as a Rich Text Editor. Everything works as expected in IE but I have two issues with...
1
by: Si | last post by:
I'm going round in circles trying to set a value as selected in a dropdown box on an ASP page. Basically this is the XML I've got: <rs:data> <z:row DirectorateID="67" DirectorateName="CEO"...
4
by: rn5a | last post by:
I am binding a DropDownList with records existing in a database table. I want to add an extra item *SELECT COMPANY* at index 0 so that by default, it gets selected. This is how I tried it but the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.