Posted by: NepaliBhai August 4, 2005
Login in to Rate this Post:
0
?
Javascript validation with pop up for RadioButtonList (not RadioButton) of .NET
I want to validate if any of radio button form RadioButtonList is checked.
Example:
var flag = 0;
if(document.Form1.RadioButtonList.SelectedIndex >= 0)
{
flag = true;
}
else
{
flage = false;
}
if(flag == false)
{
alert("One of the radio buttons is required to check");
return false;
}
Please your help.