redon13
7/13/2016 - 6:14 PM

Check radio buttons ang get value source http://stackoverflow.com/questions/9618504/get-radio-button-value-with-javascript

function checkhradiobutton(){
    var radios = document.getElementsByName('radiobuttons');

for (var i = 0, length = radios.length; i < length; i++) {
    if (radios[i].checked) {
        // do whatever you want with the checked radio
        //alert(radios[i].value);
        var req = radios[i].value;
        // only one radio can be logically checked, don't check the rest
        //break;
        return req;
    }
}
}