Hi.
I’m using a pair of radio buttons on a webpage that runs a Javascript.
I’ve defined the radio buttons with the following HTML code:
[CODE]
<FORM NAME=”vocabtest”>
…
<INPUT TYPE=”RADIO” NAME=”transdirection” ID=”trans1″ VALUE=”direct1″ CHECKED>Direction 1
<INPUT TYPE=”RADIO” NAME=”transdirection” ID=”trans2″ VALUE=”direct2″>Direction 2
…
</FORM>
The Javascript I’ve added to the page checks the state of these radio buttons with the following code:
[CODE]
if(vocabtest.transdirection.trans1.checked==true) translationdir=1;
if(vocabtest.transdirection.trans2.checked==true) translationdir=2;
The page seems to be functioning without any problems in IE.
But the mode selection that these radio buttons control isn’t working properly in Mozilla Firefox.
Is there a reason why this code might not be compatible with browsers other than Internet Explorer?
(I’m fairly new to this stuff.)
Thanks.