Answer: Here id is the name property of the RadioButtonList
function GetRadioButtonValue(id)
{
var radio = document.getElementsByName(id);
for (var ii = 0; ii < radio.length; ii++)
{
if (radio[ii].checked)
alert(radio[ii].value);
}
}
For more details, click http://www.dotnetfunda.com/articles/article72.aspx
Asked In: Many Interviews |
Alert Moderator