IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Bug of some sort
After playing around for a while I discovered that it is some sort of bug. The following code does work in 1.5 on Linux.
<html>\n<head><title>Test Radio</title></head>\n<body>\n<form id='MyForm'>\n    <input name='MyRadio' id='MyRadio' type='radio' value='Y' checked  />Yes <br />\n    <input name='MyRadio' id='MyRadio' type='radio' value='N'          />No  <br />\n</form>\n\n<script language='JavaScript' type='text/javascript'>\n   if (document.getElementById("MyForm").MyRadio[0].checked) {\n      alert("hello");\n   }\n</script>\n</body>\n</html>

The only difference being I put the type after the name and ID.

Seems to be this one [link|http://bugzilla.mozilla.org/show_bug.cgi?id=183940|Bugzilla].

Jay
New That looks like the one. Thanks.
Thought I was going out of my mind on this one - began to question whether I missed the whole DOM thing. :-)
     Mozilla JavaScript question - (ChrisR) - (5)
         Works on Mozilla 1.4 - (ben_tilly) - (1)
             Names were changed to protect the guilty - (ChrisR)
         Bug of some sort - (JayMehaffey) - (1)
             That looks like the one. Thanks. - (ChrisR)
         Your ID fields aren't unique. - (static)

I can only take so much at one sitting!
60 ms