Radio Button
-
Hi all, I am using this code to create list of Radio Button
Dim TD7 As New TableCell
Dim rbCopy As New RadioButton
rbCopy.GroupName = "radioCopy"
rbCopy.ID = "radioCopy"
TD7.HorizontalAlign = HorizontalAlign.Left
TD7.VerticalAlign = VerticalAlign.Middle
TD7.Controls.Add(rbCopy)
TR1.Cells.Add(TD7)and adding it to the table. After this I am tryig to get any button is checked or not using
var chkChecked=document.getElementById('radioCopy');
for (intCount=0;intCount < chkChecked.length;intCount++)
{
if (chkChecked[intCount].checked == true)
{
isChecked=true;
break;
}But the
chkChecked.length
is always comming as undefined. I dont know why Thanks Dana
-
Hi all, I am using this code to create list of Radio Button
Dim TD7 As New TableCell
Dim rbCopy As New RadioButton
rbCopy.GroupName = "radioCopy"
rbCopy.ID = "radioCopy"
TD7.HorizontalAlign = HorizontalAlign.Left
TD7.VerticalAlign = VerticalAlign.Middle
TD7.Controls.Add(rbCopy)
TR1.Cells.Add(TD7)and adding it to the table. After this I am tryig to get any button is checked or not using
var chkChecked=document.getElementById('radioCopy');
for (intCount=0;intCount < chkChecked.length;intCount++)
{
if (chkChecked[intCount].checked == true)
{
isChecked=true;
break;
}But the
chkChecked.length
is always comming as undefined. I dont know why Thanks Dana
No Problem this one worked
document.all.radioCopy
Dana