| var objList = document.getElementById("radiobuttonid");
var RdlBoxCount = objList.getElementsByTagName("input");
for(var i = 0;i< RdlBoxCount.length;i++)
{
var RdlBoxRef = RdlBoxCount[i];
if (RdlBoxRef.checked == true)
{
var labelArray = RdlBoxRef.parentNode.getElementsByTagName("label")
var val = labelArray[i].innerHTML;
alert(val)
}
} | | |