Menu
Hi,
I have a radio button that contains 2 options. I want to do a simple validation check to test if it’s been seleted. I having a problem doing this, so I put an alert in to see that the state of checked equals. but when I execute this I get ‘Undefined’. Can someone please have a look.
<INPUT TYPE=radio NAME=”electronic” VALUE=”Electronic” CHECKED>Electronic<BR>
<INPUT TYPE=radio NAME=”electronic” VALUE=”Paper”>Paper</TD>
alert(“”+frm.electronic.checked);
if (frm.electronic.checked == false)
{
alert(“Please select if the document you are attaching is electronic or on paper.”);
frm.electronic.focus();
submitOK=”False”;
}