get radio button by name code example
Example 1: jquery get value radio by name
var value = $('input[name="name_of_your_radiobutton"]:checked').val();
Example 2: get radio button value javascript
document.querySelector('input[name="rate"]:checked').value;