[thelist] Radio Button Value Property Does Not Exist in Netscape 6.1?

gregory.john.toland at census.gov gregory.john.toland at census.gov
Mon Oct 29 14:53:27 CST 2001


Problem solved!  I received this from a gentlemen on a Javascript email
list.

"change id="txtStep1" to id="txtStep1[]" and it works in NS4,6,IE5 ...

...because "txtStep1" is the name of an array, and NS6 is just more
strict about it being properly identified as one ..."

Side Question: Is anyone else building web sites with Netscape 6.1 in mind?

Example:

<body>
<form enctype="text/plain" id="myForm" method="get" name="myForm" onSubmit
="return true;">
   <input checked id="txtStep1[]" name="txtStep1"
          tabindex="1"
          title="Tabular Profile" type="radio"
          value="Tabular">Tabular</input>
   <input id="txtStep1[]" name="txtStep1"
          title="Narrative Profile" type="radio"
          value="Narrative">Narrative</input>
</form>

<script type="text/javascript">
   alert(document.myForm.txtStep1[1].value);
</script>

</body>


Gregory J Toland
Sr. Systems Architect
CHM, Inc.
(301) 457-8058
tolan002 at census.gov





More information about the thelist mailing list