841   JS

function changeRadio(radioId)
{
var radio = document.getElementsByName(radioId);
var radioLength = radio.length;
for(var i = 0;i < radioLength;i++)
{
if(radio[i].checked)
{
var radioValue = radio[i].value;
return radioValue;
}
}
return false;
}




Leave a Reply

Your email address will not be published. Required fields are marked *