javascript get all selected radio buttons code example
Example: javascript on click radio button get value
if (document.getElementById('r1').checked) {
rate_value = document.getElementById('r1').value;
}
if (document.getElementById('r1').checked) {
rate_value = document.getElementById('r1').value;
}