472,975 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,975 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 2213
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
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.