radio button on click get values 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;
}