• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

HTML Select

On some occasions in FireFox, a selected element in an option list IS NOT selected in the browser rendering.

For example, this one:

<select name="aord" class="texta" onChange="chk_no_flight();">
<option value="">Select One</option>
<option value="A" style="color:red;">Arriving</option>
<option value="D" selected>Departing</option>
<option value="N">No Flight</option>
</select>

Why?
0
Richard Korts
Asked:
Richard Korts
  • 2
1 Solution
 
clampsCommented:
are you using xhtml or html?
If xhtml you have to declare selected="selected"
0
 
Richard KortsAuthor Commented:
To clamps:

It's html but I suspect that is the issue, I was going to try that anyway.

Thanks
0
 
Richard KortsAuthor Commented:
This is the case in html too.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now