473,320 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 2226
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.