Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error accessing radio button

843838Jun 27 2006 — edited Jun 27 2006
I see the following error onclicking the radio button.
Error: 'document.form.revrp' is null or not an object

Here is the code

<<BODY>
<SCRIPT>
function getSelRadio(var radiogrp)
{
for (var counter = 0; counter < radiogrp.length; counter++)
{
alert(radiogrp[counter].value);
}
}
</script>

<TABLE BGCOLOR="white" BORDER="0">
<TR>
<TD><input type="radio" name="revgrp" value="0" checked>Default<br></TD>
<TD><input type="radio" name="revgrp" value="2" onClick = "getSelRadio(document.form.revgrp)" >Maximum value of x Axis<br></TD>
<TD> <input name="maxrevaxis" type="text" value="20000" /> </TD>
</TR>

</TABLE>
</BODY>

Message was edited by:
developerdeveloper
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2006
Added on Jun 27 2006
1 comment
103 views