js get radio button that is checked 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;
}