.
Javasuck - Grin with cat attached — LiveJournal
Previous Entry Next Entry
Javasuck Dec. 5th, 2002 04:53 pm
An HTML page with two identical <SELECT> controls.
( [=< etc):


[SELECT name="select1"]
[OPTION value="3"]A[/OPTION]
[OPTION value="5"]B[/OPTION]
[OPTION value="7"]C[/OPTION]
[OPTION value="9"]D[/OPTION]
[/SELECT]


[SELECT name="select2"]
[OPTION value="3"]A[/OPTION]
[OPTION value="5"]B[/OPTION]
[OPTION value="7"]C[/OPTION]
[OPTION value="9"]D[/OPTION]
[/SELECT]

Javascript OnChange routine sets: select1.value=select2.value

Set select2 to A, (offset=0,value=3).

In IE-MAC, select1 will now be D (offset=3, value=7)
In MOZ-MAC and IE-WIN, select1 will now be A (offset=0, value=3)



This is a bloody PITA. Or am I just nuts?

From: dennyd
Date: December 5th, 2002 - 09:24 am (Link)
So IE is using the value as an offset instead of as a, erm, value.  Cute  :)

What happens if the values are non-numeric in form?  Words, or something along those lines...?