javascript get the value of selected radio button code example
Example 1: get radio button value javascript
document.querySelector('input[name="rate"]:checked').value;
Example 2: radio button group get value javascript
$('input[name=gender]:checked').val();