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?
Richard KortsAsked:
Who is Participating?
 
clampsConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.