Selected Attribute Not Working in Option Element?

S

SMH

Is there a reason I am not able to get the browser to appropriately select
the option which is has the "selected" attribute?

The select element is generated from a script, although I have checked the
generated source against a validator using STRICT HTML, and there is no
hiccup.

Development browser is FF3
 
A

Ari Heino

SMH kirjoitti seuraavasti:
Is there a reason I am not able to get the browser to appropriately select
the option which is has the "selected" attribute?

There probably is. URL would be handy here.
 
A

Adrienne Boswell

Gazing into my crystal ball I observed SMH
Is there a reason I am not able to get the browser to appropriately
select the option which is has the "selected" attribute?

The select element is generated from a script, although I have checked
the generated source against a validator using STRICT HTML, and there
is no hiccup.

Development browser is FF3

As Ari said, a URL would be very helpful, but, did you check that the
generated source has an option element selected, and not all selected?
 
G

GTalbot

Is there a reason I am not able to get the browser to appropriately select
the option which is has the "selected" attribute?

The select element is generated from a script, although I have checked the
generated source against a validator using STRICT HTML, and there is no
hiccup.

Development browser is FF3

SMH,

We would be able to help you if you could provide an URL.

Please also note that there is a significant difference between
selected and defaultSelected.

http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#ID-37770574

And that defaultSelected is not supported by IE 6, IE 7 and not
supported by IE 8:

http://www.gtalbot.org/BrowserBugsSection/MSIE8Bugs/#bug102

regards, Gérard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,082
Messages
2,570,589
Members
47,211
Latest member
Shamestone

Latest Threads

Top