how to get the value of selected radio button 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;
}